TASK_GO_STRAIGHT_TO_COORD
TASK_GO_STRAIGHT_TO_COORD **This is the server-side RPC native equivalent of the client native [TASK_GO_STRAIGHT_TO_COORD](?\_0xD76B57B44F1E6F8B).**
CFX
Signature
lua
TaskGoStraightToCoord(PlayerPedId(), 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Ped | The ped handle. | |
| float | The x coordinate. | |
| float | The y coordinate. | |
| float | The z coordinate. | |
| float | The ped movement speed. | |
| int | \-1 , other values appear to break the ped movement. | |
| float | The heading you want the ped to be on x,y,z coord. | |
| float | The distance from x,y,z where the ped will start sliding. |
Usage
lua
TaskGoStraightToCoord(PlayerPedId(), 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
