_IS_CONTROL_ACTION_VALID
Returns true if action is a valid input action for the control group control.
Signature
BOOL _IS_CONTROL_ACTION_VALID(Hash action, int control); // 0xBC0884BC590951C7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | action | Hash |
| 2 | control | int |
Facts
| Name | _IS_CONTROL_ACTION_VALID |
|---|---|
| Hash | 0xBC0884BC590951C7 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xBC0884BC590951C7, -- _IS_CONTROL_ACTION_VALID
GetHashKey("name"), -- Hash action
0 -- int control
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xBC0884BC590951C7", // _IS_CONTROL_ACTION_VALID
GetHashKey("name"), // Hash action
0, // int control
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xBC0884BC590951C7, // _IS_CONTROL_ACTION_VALID
(uint)API.GetHashKey("name"), // Hash action
0 // int control
);Related PAD natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.