HAVE_CONTROLS_CHANGED
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
BOOL HAVE_CONTROLS_CHANGED(int control); // 0x6CD79468A1E595C6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
Facts
| 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.
local result = Citizen.InvokeNative(0x6CD79468A1E595C6, -- HAVE_CONTROLS_CHANGED
0 -- int control
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x6CD79468A1E595C6", // HAVE_CONTROLS_CHANGED
0, // int control
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x6CD79468A1E595C6, // HAVE_CONTROLS_CHANGED
0 // int control
);Related PAD natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.