The Lab
PAD native

GET_CONTROL_NORMAL

returns float2 paramsbuild 1207

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

C
float GET_CONTROL_NORMAL(int control, Hash action); // 0xEC3C9B8D5327B563 b1207

Parameters

#NameType
1controlint
2actionHash

Facts

Facts about GET_CONTROL_NORMAL
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.

Lua
local result = Citizen.InvokeNative(0xEC3C9B8D5327B563, -- GET_CONTROL_NORMAL
  0, -- int control
  GetHashKey("name"), -- Hash action
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xEC3C9B8D5327B563", // GET_CONTROL_NORMAL
  0, // int control
  GetHashKey("name"), // Hash action
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0xEC3C9B8D5327B563, // GET_CONTROL_NORMAL
  0, // int control
  (uint)API.GetHashKey("name") // Hash action
);
All PAD natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.