SET_CONTROL_VALUE_NEXT_FRAME
Simulates input by setting action on control to value for the next frame, returning true on success.
Signature
BOOL SET_CONTROL_VALUE_NEXT_FRAME(int control, Hash action, float value); // 0xE8A25867FBA3B05E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
| 2 | action | Hash |
| 3 | value | float |
Facts
| 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.
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// 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) {
// ...
}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
);Related PAD natives
- SET_CONTROL_LIGHT_EFFECT_COLOR
- SET_CONTROL_LIGHT_EFFECT_FLASHING_COLOR
- SET_CONTROL_SHAKE
- SET_CONTROL_SHAKE_SUPPRESSED_ID
- SET_CONTROL_TRIGGER_SHAKE
- _SET_CONTROL_CONTEXT
- GET_CONTROL_VALUE
- SET_INPUT_EXCLUSIVE
- STOP_CONTROL_SHAKE
- _GET_CURRENT_CONTROL_CONTEXT
- _GET_DISABLED_CONTROL_HOW_LONG_AGO
- _IS_CONTROL_ACTION_VALID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.