The Lab
PAD native

SET_CONTROL_VALUE_NEXT_FRAME

returns BOOL3 paramsbuild 1207

Simulates input by setting action on control to value for the next frame, returning true on success.

Signature

C
BOOL SET_CONTROL_VALUE_NEXT_FRAME(int control, Hash action, float value); // 0xE8A25867FBA3B05E b1207

Parameters

#NameType
1controlint
2actionHash
3valuefloat

Facts

Facts about SET_CONTROL_VALUE_NEXT_FRAME
Name
SET_CONTROL_VALUE_NEXT_FRAME
Hash
0xE8A25867FBA3B05E
Namespace
Returns
BOOL
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(0xE8A25867FBA3B05E, -- SET_CONTROL_VALUE_NEXT_FRAME
  0, -- int control
  GetHashKey("name"), -- Hash action
  0.0 -- float value
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xE8A25867FBA3B05E", // SET_CONTROL_VALUE_NEXT_FRAME
  0, // int control
  GetHashKey("name"), // Hash action
  0.0, // float value
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xE8A25867FBA3B05E, // SET_CONTROL_VALUE_NEXT_FRAME
  0, // int control
  (uint)API.GetHashKey("name"), // Hash action
  0.0f // float value
);
All PAD natives

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