IS_CONTROL_JUST_PRESSED
Returns true only on the frame the input action on control was pressed. Returns false if the action is disabled.
Signature
BOOL IS_CONTROL_JUST_PRESSED(int control, Hash action); // 0x580417101DDB492F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
| 2 | action | Hash |
Facts
| Name | IS_CONTROL_JUST_PRESSED |
|---|---|
| Hash | 0x580417101DDB492F |
| 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(0x580417101DDB492F, -- IS_CONTROL_JUST_PRESSED
0, -- int control
GetHashKey("name") -- Hash action
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x580417101DDB492F", // IS_CONTROL_JUST_PRESSED
0, // int control
GetHashKey("name"), // Hash action
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x580417101DDB492F, // IS_CONTROL_JUST_PRESSED
0, // int control
(uint)API.GetHashKey("name") // Hash action
);Related PAD natives
- IS_CONTROL_JUST_RELEASED
- IS_CONTROL_PRESSED
- IS_DISABLED_CONTROL_JUST_PRESSED
- IS_CONTROL_ENABLED
- IS_CONTROL_RELEASED
- IS_DISABLED_CONTROL_JUST_RELEASED
- IS_DISABLED_CONTROL_PRESSED
- _IS_CONTROL_ACTION_VALID
- IS_LOOK_INVERTED
- IS_USING_KEYBOARD_AND_MOUSE
- _GET_CURRENT_CONTROL_CONTEXT
- _GET_DISABLED_CONTROL_HOW_LONG_AGO
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.