SIMULATE_PLAYER_INPUT_GAIT
Hash
0xFA0C063C422C4355Runtime name
SimulatePlayerInputGaitNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x477D5D63E63ECA5DSignature
void SIMULATE_PLAYER_INPUT_GAIT(Player player, float speed, int duration, float heading, BOOL p4, BOOL p5);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
speed | float | — |
duration | int | — |
heading | float | — |
p4 | BOOL | — |
p5 | BOOL | — |
Returns void
Usage
SimulatePlayerInputGait(player, speed, duration, heading, p4, p5)
-- always works, by hash
Citizen.InvokeNative(0xFA0C063C422C4355, player, speed, duration, heading, p4, p5)JavaScript and C#
SimulatePlayerInputGait(player, speed, duration, heading, p4, p5);
// by hash
Citizen.invokeNative('0xFA0C063C422C4355', player, speed + 0.0000001, duration, heading + 0.0000001, p4, p5);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.