SET_DRIVEBY_TASK_TARGET
Hash
0xE5B302114D8162EERuntime name
SetDrivebyTaskTargetNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xE5B302114D8162EESignature
void SET_DRIVEBY_TASK_TARGET(Ped shootingPed, Ped targetPed, Vehicle targetVehicle, float x, float y, float z);Parameters
| Name | Type | Description |
|---|---|---|
shootingPed | Ped | — |
targetPed | Ped | — |
targetVehicle | Vehicle | — |
x | float | — |
y | float | — |
z | float | — |
Returns void
Usage
SetDrivebyTaskTarget(shootingPed, targetPed, targetVehicle, x, y, z)
-- always works, by hash
Citizen.InvokeNative(0xE5B302114D8162EE, shootingPed, targetPed, targetVehicle, x, y, z)JavaScript and C#
SetDrivebyTaskTarget(shootingPed, targetPed, targetVehicle, x, y, z);
// by hash
Citizen.invokeNative('0xE5B302114D8162EE', shootingPed, targetPed, targetVehicle, x + 0.0000001, y + 0.0000001, z + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.