RedM Natives

TASK_FOLLOW_NAV_MESH_TO_COORD

If no timeout, set timeout to -1.

Hash0x15D3A79D4E44B913
Runtime nameTaskFollowNavMeshToCoord
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x15D3A79D4E44B913

Signature

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

NameTypeDescription
pedPed—
xfloat—
yfloat—
zfloat—
speedMultiplierfloat—
timeoutint—
stoppingRangefloat—
flagsint—
headingfloat—

Returns void

Description

If no timeout, set timeout to -1.

Usage

Lua
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#
JavaScript
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#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.