isDisabledControlJustPressed
IS_DISABLED_CONTROL_JUST_PRESSED0x91AEF906BCA88877The GTA V native IS_DISABLED_CONTROL_JUST_PRESSED of the PAD namespace, as LS:MP client scripts call it: the global function isDisabledControlJustPressed, in JavaScript and in Lua.
isDisabledControlJustPressed(control: number, action: number): booleanisDisabledControlJustPressed(control: integer, action: integer): booleanUsage
JavaScript
const result = isDisabledControlJustPressed(control, action);Lua
local result = isDisabledControlJustPressed(control, action)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
control | int | number | integer | see isControlEnabled |
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 false.
Reference
- Namespace
- Controls PAD
- In the game
BOOL IS_DISABLED_CONTROL_JUST_PRESSED(int control, int action)- Hash
0x91AEF906BCA88877