The Lab
TASK native

SET_DRIVEBY_TASK_TARGET

returns void6 paramsbuild 1207

Changes the target of the drive-by task of shootingPed to a ped, vehicle or position.

Signature

C
void SET_DRIVEBY_TASK_TARGET(Ped shootingPed, Ped targetPed, Vehicle targetVehicle, float x, float y, float z); // 0xE5B302114D8162EE b1207

Parameters

#NameType
1shootingPedPed
2targetPedPed
3targetVehicleVehicle
4xfloat
5yfloat
6zfloat

Facts

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

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