ENABLE_CONTROL_ACTION
Hash
0x351220255D64C155Runtime name
EnableControlActionNamespacePAD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x351220255D64C155Signature
void ENABLE_CONTROL_ACTION(int control, Hash action, BOOL enableRelatedActions);Parameters
| Name | Type | Description |
|---|---|---|
control | int | — |
action | Hash | — |
enableRelatedActions | BOOL | — |
Returns void
Usage
EnableControlAction(control, action, enableRelatedActions)
-- always works, by hash
Citizen.InvokeNative(0x351220255D64C155, control, action, enableRelatedActions)JavaScript and C#
EnableControlAction(control, action, enableRelatedActions);
// by hash
Citizen.invokeNative('0x351220255D64C155', control, action, enableRelatedActions);Function.Call((Hash)0x351220255D64C155, control, action, enableRelatedActions);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
See also
DISABLE_CONTROL_ACTIONDisables a control for the current frame; call it every frame to keep it disabled.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.