isControlEnabled
IS_CONTROL_ENABLED0x1CEA6BFDF248E5D9The GTA V native IS_CONTROL_ENABLED of the PAD namespace, as LS:MP client scripts call it: the global function isControlEnabled, in JavaScript and in Lua.
isControlEnabled(control: number, action: number): booleanisControlEnabled(control: integer, action: integer): booleanUsage
JavaScript
const result = isControlEnabled(control, action);Lua
local result = isControlEnabled(control, action)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
control | int | number | integer |
action | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
control: 0: PLAYER_CONTROL, 1: CAMERA_CONTROL, 2: FRONTEND_CONTROL
For more info, see https://docs.fivem.net/docs/game-references/controls/
Reference
- Namespace
- Controls PAD
- In the game
BOOL IS_CONTROL_ENABLED(int control, int action)- Hash
0x1CEA6BFDF248E5D9