# TASK::SET_DRIVEBY_TASK_TARGET

- **Hash:** `0xE5B302114D8162EE`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `SetDrivebyTaskTarget`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/SET_DRIVEBY_TASK_TARGET

## Signature

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

## Parameters

- `shootingPed` (`Ped`)
- `targetPed` (`Ped`)
- `targetVehicle` (`Vehicle`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)

## Returns

`void`

## Usage

### Lua

```lua
SetDrivebyTaskTarget(shootingPed, targetPed, targetVehicle, x, y, z)

-- always available, by hash
Citizen.InvokeNative(0xE5B302114D8162EE, shootingPed, targetPed, targetVehicle, x, y, z)
```

### JavaScript

```js
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#

```csharp
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.*
