GET_CONTROL_VALUE
Returns the raw integer value of the input action on control, where 127 is typically the neutral position of an axis.
Signature
int GET_CONTROL_VALUE(int control, Hash action); // 0xD95E79E8686D2C27 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
| 2 | action | Hash |
Facts
| Name | GET_CONTROL_VALUE |
|---|---|
| Hash | 0xD95E79E8686D2C27 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xD95E79E8686D2C27, -- GET_CONTROL_VALUE
0, -- int control
GetHashKey("name"), -- Hash action
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xD95E79E8686D2C27", // GET_CONTROL_VALUE
0, // int control
GetHashKey("name"), // Hash action
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xD95E79E8686D2C27, // GET_CONTROL_VALUE
0, // int control
(uint)API.GetHashKey("name") // Hash action
);Related PAD natives
- GET_CONTROL_HOW_LONG_AGO
- GET_CONTROL_NORMAL
- GET_CONTROL_UNBOUND_NORMAL
- GET_DISABLED_CONTROL_NORMAL
- GET_DISABLED_CONTROL_UNBOUND_NORMAL
- _GET_CURRENT_CONTROL_CONTEXT
- _GET_DISABLED_CONTROL_HOW_LONG_AGO
- SET_CONTROL_VALUE_NEXT_FRAME
- _IS_CONTROL_ACTION_VALID
- _SET_CONTROL_CONTEXT
- CLEAR_CONTROL_LIGHT_EFFECT
- CLEAR_CONTROL_SHAKE_SUPPRESSED_ID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.