isControlReleased
IS_CONTROL_RELEASED0x648EE3E7F38877DDThe GTA V native IS_CONTROL_RELEASED of the PAD namespace, as LS:MP client scripts call it: the global function isControlReleased, in JavaScript and in Lua.
isControlReleased(control: number, action: number): booleanisControlReleased(control: integer, action: integer): booleanUsage
JavaScript
const result = isControlReleased(control, action);Lua
local result = isControlReleased(control, action)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
control | int | number | integer |
action | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanOn LS:MP
ℹ
Input while LS:MP has the focus
While the LS:MP menu, the console or a focused browser holds the keyboard and mouse, this native does not reach the game: it returns true, a control at rest is released.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns whether a control is currently _not_ pressed.
control: see isControlEnabled
Reference
- Namespace
- Controls PAD
- In the game
BOOL IS_CONTROL_RELEASED(int control, int action)- Hash
0x648EE3E7F38877DD