The Lab
TASK native

TASK_VEHICLE_ESCORT

returns void9 paramsbuild 1207

Tasks ped to escort targetVehicle with vehicle using mode, at speed and keeping minDistance.

Signature

C
void TASK_VEHICLE_ESCORT(Ped ped, Vehicle vehicle, Vehicle targetVehicle, int mode, float speed, int drivingStyle, float minDistance, int p7, float noRoadsDistance); // 0x0FA6E4B75F302400 b1207

Parameters

#NameType
1pedPed
2vehicleVehicle
3targetVehicleVehicle
4modeint
5speedfloat
6drivingStyleint
7minDistancefloat
8p7int
9noRoadsDistancefloat

Facts

Facts about TASK_VEHICLE_ESCORT
Name
TASK_VEHICLE_ESCORT
Hash
0x0FA6E4B75F302400
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(0x0FA6E4B75F302400, -- TASK_VEHICLE_ESCORT
  PlayerPedId(), -- Ped ped
  0, -- Vehicle vehicle
  0, -- Vehicle targetVehicle
  0, -- int mode
  0.0, -- float speed
  0, -- int drivingStyle
  0.0, -- float minDistance
  0, -- int p7
  0.0 -- float noRoadsDistance
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x0FA6E4B75F302400", // TASK_VEHICLE_ESCORT
  PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0, // Vehicle targetVehicle
  0, // int mode
  0.0, // float speed
  0, // int drivingStyle
  0.0, // float minDistance
  0, // int p7
  0.0 // float noRoadsDistance
);
C#
Function.Call((Hash)0x0FA6E4B75F302400, // TASK_VEHICLE_ESCORT
  API.PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0, // Vehicle targetVehicle
  0, // int mode
  0.0f, // float speed
  0, // int drivingStyle
  0.0f, // float minDistance
  0, // int p7
  0.0f // float noRoadsDistance
);
All TASK natives

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