The Lab
PAD native

IS_DISABLED_CONTROL_PRESSED

returns BOOL2 paramsbuild 1207

Returns true while the input action is held down, even if the action is disabled.

Signature

C
BOOL IS_DISABLED_CONTROL_PRESSED(int control, Hash action); // 0xE2587F8CBBD87B1D b1207

Parameters

#NameType
1controlint
2actionHash

Facts

Facts about IS_DISABLED_CONTROL_PRESSED
Name
IS_DISABLED_CONTROL_PRESSED
Hash
0xE2587F8CBBD87B1D
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(0xE2587F8CBBD87B1D, -- IS_DISABLED_CONTROL_PRESSED
  0, -- int control
  GetHashKey("name") -- Hash action
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xE2587F8CBBD87B1D", // IS_DISABLED_CONTROL_PRESSED
  0, // int control
  GetHashKey("name"), // Hash action
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xE2587F8CBBD87B1D, // IS_DISABLED_CONTROL_PRESSED
  0, // int control
  (uint)API.GetHashKey("name") // Hash action
);
All PAD natives

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