RedM Natives

SET_DRIVEBY_TASK_TARGET

Hash0xE5B302114D8162EE
Runtime nameSetDrivebyTaskTarget
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xE5B302114D8162EE

Signature

void SET_DRIVEBY_TASK_TARGET(Ped shootingPed, Ped targetPed, Vehicle targetVehicle, float x, float y, float z);

Parameters

NameTypeDescription
shootingPedPed—
targetPedPed—
targetVehicleVehicle—
xfloat—
yfloat—
zfloat—

Returns void

Usage

Lua
SetDrivebyTaskTarget(shootingPed, targetPed, targetVehicle, x, y, z)

-- always works, by hash
Citizen.InvokeNative(0xE5B302114D8162EE, shootingPed, targetPed, targetVehicle, x, y, z)
JavaScript and C#
JavaScript
SetDrivebyTaskTarget(shootingPed, targetPed, targetVehicle, x, y, z);

// by hash
Citizen.invokeNative('0xE5B302114D8162EE', shootingPed, targetPed, targetVehicle, x + 0.0000001, y + 0.0000001, z + 0.0000001);
C#
Function.Call((Hash)0xE5B302114D8162EE, shootingPed, targetPed, targetVehicle, x, y, z);
  • 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.