The Lab
TASK native

TASK_FOLLOW_NAV_MESH_TO_COORD

returns void9 paramsbuild 1207

Tasks ped to walk to (x, y, z) using the navmesh, at speedMultiplier, stopping within stoppingRange and facing heading.

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); // 0x15D3A79D4E44B913 b1207

Parameters

#NameType
1pedPed
2xfloat
3yfloat
4zfloat
5speedMultiplierfloat
6timeoutint
7stoppingRangefloat
8flagsint
9headingfloat

Facts

Facts about TASK_FOLLOW_NAV_MESH_TO_COORD
Name
TASK_FOLLOW_NAV_MESH_TO_COORD
Hash
0x15D3A79D4E44B913
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x15D3A79D4E44B913, -- TASK_FOLLOW_NAV_MESH_TO_COORD
  PlayerPedId(), -- Ped ped
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float speedMultiplier
  0, -- int timeout
  0.0, -- float stoppingRange
  0, -- int flags
  0.0 -- float heading
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x15D3A79D4E44B913", // TASK_FOLLOW_NAV_MESH_TO_COORD
  PlayerPedId(), // Ped ped
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float speedMultiplier
  0, // int timeout
  0.0, // float stoppingRange
  0, // int flags
  0.0 // float heading
);
C#
Function.Call((Hash)0x15D3A79D4E44B913, // TASK_FOLLOW_NAV_MESH_TO_COORD
  API.PlayerPedId(), // Ped ped
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float speedMultiplier
  0, // int timeout
  0.0f, // float stoppingRange
  0, // int flags
  0.0f // float heading
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.