RedM Natives

SIMULATE_PLAYER_INPUT_GAIT

Hash0xFA0C063C422C4355
Runtime nameSimulatePlayerInputGait
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x477D5D63E63ECA5D

Signature

void SIMULATE_PLAYER_INPUT_GAIT(Player player, float speed, int duration, float heading, BOOL p4, BOOL p5);

Parameters

NameTypeDescription
playerPlayer—
speedfloat—
durationint—
headingfloat—
p4BOOL—
p5BOOL—

Returns void

Usage

Lua
SimulatePlayerInputGait(player, speed, duration, heading, p4, p5)

-- always works, by hash
Citizen.InvokeNative(0xFA0C063C422C4355, player, speed, duration, heading, p4, p5)
JavaScript and C#
JavaScript
SimulatePlayerInputGait(player, speed, duration, heading, p4, p5);

// by hash
Citizen.invokeNative('0xFA0C063C422C4355', player, speed + 0.0000001, duration, heading + 0.0000001, p4, p5);
C#
Function.Call((Hash)0xFA0C063C422C4355, player, speed, duration, heading, p4, p5);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.