Lua Primary Key Utilities Module 1.0

Developers Lua


Description


Lua Primary Key Utilities Module

This module adds four functions for improved key control:

  • GetKeyJustPressed(key)
  • GetKeyJustReleased(key)
  • GetKeyPressed(key)
  • GetKeyReleased(key)

The module requires the current version of LUA Plugin for Script Hook V, which includes the "keys.lua" file necessary for its operation. Place this "keys.lua" file in either the "scripts\addins" or "scripts\libs" folder.

These functions address a common issue with the existing "get_key_pressed(key)" function, which by itself is limited. While it can be combined with a loop and wait function to trigger on key release, this approach freezes either LUA scripts or the entire game.


First Upload: November 11, 2024 Last Updated: November 11, 2024


0 Comments