# TASK::TASK_FOLLOW_NAV_MESH_TO_COORD

- **Hash:** `0x15D3A79D4E44B913`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `TaskFollowNavMeshToCoord`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/TASK_FOLLOW_NAV_MESH_TO_COORD

## Signature

```c
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

- `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

### Lua

```lua
TaskFollowNavMeshToCoord(ped, x, y, z, speedMultiplier, timeout, stoppingRange, flags, heading)

-- always available, by hash
Citizen.InvokeNative(0x15D3A79D4E44B913, ped, x, y, z, speedMultiplier, timeout, stoppingRange, flags, heading)
```

### JavaScript

```js
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);
```

### C#

```csharp
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. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
