The Lab
PAD native

ENABLE_CONTROL_ACTION

returns void3 paramsbuild 1207

Re-enables the input action on control for the current frame, optionally including related actions.

Useful after DISABLE_ALL_CONTROL_ACTIONS to whitelist a few inputs.

Signature

C
void ENABLE_CONTROL_ACTION(int control, Hash action, BOOL enableRelatedActions); // 0x351220255D64C155 b1207

Parameters

#NameType
1controlint
2actionHash
3enableRelatedActionsBOOL

Facts

Facts about ENABLE_CONTROL_ACTION
Name
ENABLE_CONTROL_ACTION
Hash
0x351220255D64C155
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x351220255D64C155, -- ENABLE_CONTROL_ACTION
  0, -- int control
  GetHashKey("name"), -- Hash action
  false -- BOOL enableRelatedActions
)
JavaScript
Citizen.invokeNative("0x351220255D64C155", // ENABLE_CONTROL_ACTION
  0, // int control
  GetHashKey("name"), // Hash action
  false // BOOL enableRelatedActions
);
C#
Function.Call((Hash)0x351220255D64C155, // ENABLE_CONTROL_ACTION
  0, // int control
  (uint)API.GetHashKey("name"), // Hash action
  false // BOOL enableRelatedActions
);
All PAD natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.