function setScriptKeyEnabled (client-side)
Available since version: 0.3.0
This function will enable or disable Lua polling and key events for a keyboard key. This does not change native game bindings.
Declaration
boolean setScriptKeyEnabled(number keyId, boolean enabled)
Parameters
numberkeyId: The key code to control. For more information about key codes, see Key Constants.booleanenabled: True to include this input in script polling; false to suppress it.
Returns boolean
True on success.