TASK_FOLLOW_NAV_MESH_TO_COORD
If no timeout, set timeout to -1.
Hash
0x15D3A79D4E44B913Runtime name
TaskFollowNavMeshToCoordNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x15D3A79D4E44B913Signature
void TASK_FOLLOW_NAV_MESH_TO_COORD(Ped ped, float x, float y, float z, float speedMultiplier, int timeout, float stoppingRange, int flags, float heading);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
x | float | — |
y | float | — |
z | float | — |
speedMultiplier | float | — |
timeout | int | — |
stoppingRange | float | — |
flags | int | — |
heading | float | — |
Returns void
Description
If no timeout, set timeout to -1.
Usage
TaskFollowNavMeshToCoord(ped, x, y, z, speedMultiplier, timeout, stoppingRange, flags, heading)
-- always works, by hash
Citizen.InvokeNative(0x15D3A79D4E44B913, ped, x, y, z, speedMultiplier, timeout, stoppingRange, flags, heading)JavaScript and C#
TaskFollowNavMeshToCoord(ped, x, y, z, speedMultiplier, timeout, stoppingRange, flags, heading);
// by hash
Citizen.invokeNative('0x15D3A79D4E44B913', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, speedMultiplier + 0.0000001, timeout, stoppingRange + 0.0000001, flags, heading + 0.0000001);Function.Call((Hash)0x15D3A79D4E44B913, ped, x, y, z, speedMultiplier, timeout, stoppingRange, flags, heading);- 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.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.