IS_DISABLED_CONTROL_JUST_PRESSED
Returns true on the frame the input action was pressed, even if the action is disabled.
Pair with DISABLE_CONTROL_ACTION to take over a key from the game.
Signature
BOOL IS_DISABLED_CONTROL_JUST_PRESSED(int control, Hash action); // 0x91AEF906BCA88877 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
| 2 | action | Hash |
Facts
| Name | IS_DISABLED_CONTROL_JUST_PRESSED |
|---|---|
| Hash | 0x91AEF906BCA88877 |
| 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(0x91AEF906BCA88877, -- IS_DISABLED_CONTROL_JUST_PRESSED
0, -- int control
GetHashKey("name") -- Hash action
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x91AEF906BCA88877", // IS_DISABLED_CONTROL_JUST_PRESSED
0, // int control
GetHashKey("name"), // Hash action
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x91AEF906BCA88877, // IS_DISABLED_CONTROL_JUST_PRESSED
0, // int control
(uint)API.GetHashKey("name") // Hash action
);Related PAD natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.