GET_CONTROL_NORMAL
Returns the normalized value of the input action on control, from 0.0 to 1.0 for buttons and triggers, or -1.0 to 1.0 for axes. Returns 0 if the action is disabled.
Signature
float GET_CONTROL_NORMAL(int control, Hash action); // 0xEC3C9B8D5327B563 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
| 2 | action | Hash |
Facts
| Name | GET_CONTROL_NORMAL |
|---|---|
| Hash | 0xEC3C9B8D5327B563 |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xEC3C9B8D5327B563, -- GET_CONTROL_NORMAL
0, -- int control
GetHashKey("name"), -- Hash action
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0xEC3C9B8D5327B563", // GET_CONTROL_NORMAL
0, // int control
GetHashKey("name"), // Hash action
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0xEC3C9B8D5327B563, // GET_CONTROL_NORMAL
0, // int control
(uint)API.GetHashKey("name") // Hash action
);Related PAD natives
- GET_CONTROL_UNBOUND_NORMAL
- GET_CONTROL_HOW_LONG_AGO
- GET_CONTROL_VALUE
- GET_DISABLED_CONTROL_NORMAL
- GET_DISABLED_CONTROL_UNBOUND_NORMAL
- _GET_CURRENT_CONTROL_CONTEXT
- _GET_DISABLED_CONTROL_HOW_LONG_AGO
- _IS_CONTROL_ACTION_VALID
- _SET_CONTROL_CONTEXT
- CLEAR_CONTROL_LIGHT_EFFECT
- CLEAR_CONTROL_SHAKE_SUPPRESSED_ID
- DISABLE_ALL_CONTROL_ACTIONS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.