DISABLE_CONTROL_ACTION
Disables the input action on control for the current frame, so the game ignores it. disableRelatedActions also blocks actions linked to it.
Must be called every frame; read the blocked input with IS_DISABLED_CONTROL_JUST_PRESSED if needed.
Signature
void DISABLE_CONTROL_ACTION(int control, Hash action, BOOL disableRelatedActions); // 0xFE99B66D079CF6BC b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
| 2 | action | Hash |
| 3 | disableRelatedActions | BOOL |
Facts
| Name | DISABLE_CONTROL_ACTION |
|---|---|
| Hash | 0xFE99B66D079CF6BC |
| 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(0xFE99B66D079CF6BC, -- DISABLE_CONTROL_ACTION
0, -- int control
GetHashKey("name"), -- Hash action
false -- BOOL disableRelatedActions
)Citizen.invokeNative("0xFE99B66D079CF6BC", // DISABLE_CONTROL_ACTION
0, // int control
GetHashKey("name"), // Hash action
false // BOOL disableRelatedActions
);Function.Call((Hash)0xFE99B66D079CF6BC, // DISABLE_CONTROL_ACTION
0, // int control
(uint)API.GetHashKey("name"), // Hash action
false // BOOL disableRelatedActions
);Related PAD natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.