ENABLE_CONTROL_ACTION
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
void ENABLE_CONTROL_ACTION(int control, Hash action, BOOL enableRelatedActions); // 0x351220255D64C155 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
| 2 | action | Hash |
| 3 | enableRelatedActions | BOOL |
Facts
| 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.
Citizen.InvokeNative(0x351220255D64C155, -- ENABLE_CONTROL_ACTION
0, -- int control
GetHashKey("name"), -- Hash action
false -- BOOL enableRelatedActions
)Citizen.invokeNative("0x351220255D64C155", // ENABLE_CONTROL_ACTION
0, // int control
GetHashKey("name"), // Hash action
false // BOOL enableRelatedActions
);Function.Call((Hash)0x351220255D64C155, // ENABLE_CONTROL_ACTION
0, // int control
(uint)API.GetHashKey("name"), // Hash action
false // BOOL enableRelatedActions
);Related PAD natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.