TaskGoStraightToCoord — FiveM Natives
0x80A9E7A7 · CFX · server
TASK_GO_STRAIGHT_TO_COORD This is the server-side RPC native equivalent of the client native TASK_GO_STRAIGHT_TO_COORD.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped handle. |
| x | float | The x coordinate. |
| y | float | The y coordinate. |
| z | float | The z coordinate. |
| speed | float | The ped movement speed. |
| timeout | int | \-1 , other values appear to break the ped movement. |
| targetHeading | float | The heading you want the ped to be on x,y,z coord. |
| distanceToSlide | float | The distance from x,y,z where the ped will start sliding. |
Returns
void