SIMULATE_PLAYER_INPUT_GAIT
Simulates movement input for player at the given speed and heading for duration.
Signature
void SIMULATE_PLAYER_INPUT_GAIT(Player player, float speed, int duration, float heading, BOOL p4, BOOL p5); // 0xFA0C063C422C4355 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | speed | float |
| 3 | duration | int |
| 4 | heading | float |
| 5 | p4 | BOOL |
| 6 | p5 | BOOL |
Facts
| Name | SIMULATE_PLAYER_INPUT_GAIT |
|---|---|
| Hash | 0xFA0C063C422C4355 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xFA0C063C422C4355, -- SIMULATE_PLAYER_INPUT_GAIT
PlayerId(), -- Player player
0.0, -- float speed
0, -- int duration
0.0, -- float heading
false, -- BOOL p4
false -- BOOL p5
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xFA0C063C422C4355", // SIMULATE_PLAYER_INPUT_GAIT
PlayerId(), // Player player
0.0, // float speed
0, // int duration
0.0, // float heading
false, // BOOL p4
false // BOOL p5
);Function.Call((Hash)0xFA0C063C422C4355, // SIMULATE_PLAYER_INPUT_GAIT
API.PlayerId(), // Player player
0.0f, // float speed
0, // int duration
0.0f, // float heading
false, // BOOL p4
false // BOOL p5
);Related PLAYER natives
- RESET_PLAYER_INPUT_GAIT
- SET_PLAYER_SIMULATE_AIMING
- SET_EVERYONE_IGNORE_PLAYER
- SET_PED_AS_TEMP_PLAYER_HORSE
- SET_PLAYER_CAN_BE_HASSLED_BY_GANGS
- SET_PLAYER_CAN_USE_COVER
- SET_PLAYER_CLOTH_PIN_FRAMES
- SET_PLAYER_CONTROL
- SET_PLAYER_FORCED_AIM
- SET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
- SET_PLAYER_INVINCIBLE
- SET_PLAYER_LOCKON
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.