The Lab
PAD native

DISABLE_CONTROL_ACTION

returns void3 paramsbuild 1207

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

C
void DISABLE_CONTROL_ACTION(int control, Hash action, BOOL disableRelatedActions); // 0xFE99B66D079CF6BC b1207

Parameters

#NameType
1controlint
2actionHash
3disableRelatedActionsBOOL

Facts

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

Lua
Citizen.InvokeNative(0xFE99B66D079CF6BC, -- DISABLE_CONTROL_ACTION
  0, -- int control
  GetHashKey("name"), -- Hash action
  false -- BOOL disableRelatedActions
)
JavaScript
Citizen.invokeNative("0xFE99B66D079CF6BC", // DISABLE_CONTROL_ACTION
  0, // int control
  GetHashKey("name"), // Hash action
  false // BOOL disableRelatedActions
);
C#
Function.Call((Hash)0xFE99B66D079CF6BC, // DISABLE_CONTROL_ACTION
  0, // int control
  (uint)API.GetHashKey("name"), // Hash action
  false // BOOL disableRelatedActions
);
All PAD natives

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