The Lab
TASK native

TASK_VEHICLE_MISSION_PED_TARGET

returns void9 paramsbuild 1207

Gives ped a vehicle mission of type mode against pedTarget, with maxSpeed and drivingStyle.

Signature

C
void TASK_VEHICLE_MISSION_PED_TARGET(Ped ped, Vehicle vehicle, Ped pedTarget, int mode, float maxSpeed, int drivingStyle, float minDistance, float p7, BOOL DriveAgainstTraffic); // 0x9454528DF15D657A b1207

Parameters

#NameType
1pedPed
2vehicleVehicle
3pedTargetPed
4modeint
5maxSpeedfloat
6drivingStyleint
7minDistancefloat
8p7float
9DriveAgainstTrafficBOOL

Facts

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

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