SimulatePlayerInputGait — FiveM Natives
0x477D5D63E63ECA5D · PLAYER · all
This is to make the player walk without accepting input. Call this native every frame so you can control the direction of your ped.
Parameters
| Name | Type | Description |
|---|---|---|
| player | Player | The player to target (always your local player id). |
| amount | float | For game pads, using anything less than 1.0 will make it partially press analog controls (like sticks/triggers). |
| gaitType | int | Value in increments of 100's. 2000, 500, 300, 200, etc. Set to -1 if you want your ped to walk forever. |
| rotationSpeed | float | Determines the counterclockwise rotation angle when walking. |
| p4 | BOOL | Always true |
| p5 | BOOL | Always false |
Returns
void