The Lab
TASK native

TASK_VEHICLE_GOTO_NAVMESH

returns void8 paramsbuild 1207

Tasks ped to drive vehicle to (x, y, z) using the navmesh instead of roads.

Signature

C
void TASK_VEHICLE_GOTO_NAVMESH(Ped ped, Vehicle vehicle, float x, float y, float z, float speed, int behaviorFlag, float stoppingRange); // 0x195AEEB13CEFE2EE b1207

Parameters

#NameType
1pedPed
2vehicleVehicle
3xfloat
4yfloat
5zfloat
6speedfloat
7behaviorFlagint
8stoppingRangefloat

Facts

Facts about TASK_VEHICLE_GOTO_NAVMESH
Name
TASK_VEHICLE_GOTO_NAVMESH
Hash
0x195AEEB13CEFE2EE
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(0x195AEEB13CEFE2EE, -- TASK_VEHICLE_GOTO_NAVMESH
  PlayerPedId(), -- Ped ped
  0, -- Vehicle vehicle
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float speed
  0, -- int behaviorFlag
  0.0 -- float stoppingRange
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x195AEEB13CEFE2EE", // TASK_VEHICLE_GOTO_NAVMESH
  PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float speed
  0, // int behaviorFlag
  0.0 // float stoppingRange
);
C#
Function.Call((Hash)0x195AEEB13CEFE2EE, // TASK_VEHICLE_GOTO_NAVMESH
  API.PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float speed
  0, // int behaviorFlag
  0.0f // float stoppingRange
);
All TASK natives

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