SET_DRIVEBY_TASK_TARGET
Changes the target of the drive-by task of shootingPed to a ped, vehicle or position.
Signature
void SET_DRIVEBY_TASK_TARGET(Ped shootingPed, Ped targetPed, Vehicle targetVehicle, float x, float y, float z); // 0xE5B302114D8162EE b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | shootingPed | Ped |
| 2 | targetPed | Ped |
| 3 | targetVehicle | Vehicle |
| 4 | x | float |
| 5 | y | float |
| 6 | z | float |
Facts
| 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.
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
)// 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
);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
);Related TASK natives
- SET_DRIVE_TASK_CRUISE_SPEED
- SET_DRIVE_TASK_MAX_CRUISE_SPEED
- CLEAR_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
- IS_DRIVEBY_TASK_UNDERNEATH_DRIVING_TASK
- SET_HIGH_FALL_TASK
- SET_TASK_MOVE_NETWORK_SIGNAL_BOOL
- SET_TASK_MOVE_NETWORK_SIGNAL_FLOAT
- _SET_TASK_FISHING
- _SET_TASK_MOVE_NETWORK_SIGNAL_FLOAT_2
- _SET_TASK_MOVE_NETWORK_SIGNAL_VECTOR
- _TASK_CUT_FREE_HOGTIED_TARGET_PED
- _TASK_CUT_FREE_HOGTIED_TARGET_PED_EX
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.