The Lab
PAD native

HAVE_CONTROLS_CHANGED

returns BOOL1 parambuild 1207

Returns true if the active input device for control changed since the last check, for example from gamepad to keyboard.

Use it to refresh on-screen button prompts.

Signature

C
BOOL HAVE_CONTROLS_CHANGED(int control); // 0x6CD79468A1E595C6 b1207

Parameters

#NameType
1controlint

Facts

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

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