RedM Natives

ENABLE_CONTROL_ACTION

Hash0x351220255D64C155
Runtime nameEnableControlAction
NamespacePAD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x351220255D64C155

Signature

void ENABLE_CONTROL_ACTION(int control, Hash action, BOOL enableRelatedActions);

Parameters

NameTypeDescription
controlint—
actionHash—
enableRelatedActionsBOOL—

Returns void

Usage

Lua
EnableControlAction(control, action, enableRelatedActions)

-- always works, by hash
Citizen.InvokeNative(0x351220255D64C155, control, action, enableRelatedActions)
JavaScript and C#
JavaScript
EnableControlAction(control, action, enableRelatedActions);

// by hash
Citizen.invokeNative('0x351220255D64C155', control, action, enableRelatedActions);
C#
Function.Call((Hash)0x351220255D64C155, control, action, enableRelatedActions);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.