The Lab
PAD native

_IS_CONTROL_ACTION_VALID

returns BOOL2 paramsbuild 1207

Returns true if action is a valid input action for the control group control.

Signature

C
BOOL _IS_CONTROL_ACTION_VALID(Hash action, int control); // 0xBC0884BC590951C7 b1207

Parameters

#NameType
1actionHash
2controlint

Facts

Facts about _IS_CONTROL_ACTION_VALID
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.

Lua
local result = Citizen.InvokeNative(0xBC0884BC590951C7, -- _IS_CONTROL_ACTION_VALID
  GetHashKey("name"), -- Hash action
  0 -- int control
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xBC0884BC590951C7", // _IS_CONTROL_ACTION_VALID
  GetHashKey("name"), // Hash action
  0, // int control
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xBC0884BC590951C7, // _IS_CONTROL_ACTION_VALID
  (uint)API.GetHashKey("name"), // Hash action
  0 // int control
);
All PAD natives

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