disableControlAction
DISABLE_CONTROL_ACTION0xFE99B66D079CF6BCThe GTA V native DISABLE_CONTROL_ACTION of the PAD namespace, as LS:MP client scripts call it: the global function disableControlAction, in JavaScript and in Lua.
disableControlAction(
control: number,
action: number,
disableRelatedActions: boolean
): voiddisableControlAction(
control: integer,
action: integer,
disableRelatedActions: boolean
)Usage
JavaScript
disableControlAction(control, action, disableRelatedActions);Lua
disableControlAction(control, action, disableRelatedActions)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
control | int | number | integer | see isControlEnabled |
action | int | number | integer | |
disableRelatedActions | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Controls PAD
- In the game
void DISABLE_CONTROL_ACTION(int control, int action, BOOL disableRelatedActions)- Hash
0xFE99B66D079CF6BC