setControlValueNextFrame
SET_CONTROL_VALUE_NEXT_FRAME0xE8A25867FBA3B05EThe GTA V native SET_CONTROL_VALUE_NEXT_FRAME of the PAD namespace, as LS:MP client scripts call it: the global function setControlValueNextFrame, in JavaScript and in Lua.
setControlValueNextFrame(
control: number,
action: number,
value: number
): booleansetControlValueNextFrame(
control: integer,
action: integer,
value: number
): booleanUsage
JavaScript
const result = setControlValueNextFrame(control, action, value);Lua
local result = setControlValueNextFrame(control, action, value)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
control | int | number | integer | see isControlEnabled |
action | int | number | integer | |
value | float | number | number |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This is for simulating player input.
value is a float value from 0 - 1
Reference
- Namespace
- Controls PAD
- In the game
BOOL SET_CONTROL_VALUE_NEXT_FRAME(int control, int action, float value)- Hash
0xE8A25867FBA3B05E- Formerly
_SET_CONTROL_NORMAL