# TASK::TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT

- **Hash:** `0x089FF2FB965F0A29`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `TaskVehicleDriveStraightToPoint`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT

## Signature

```c
void TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT(Ped driver, Vehicle vehicle, float x, float y, float z, float p5, float p6, int flag);
```

## Parameters

- `driver` (`Ped`)
- `vehicle` (`Vehicle`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `p5` (`float`)
- `p6` (`float`)
- `flag` (`int`)

## Returns

`void`

## Description

Old name: _TASK_VEHICLE_DRIVE_TO_POINT
flag: 524419 and 0 in shop_horse_shop R* Script

## Usage

### Lua

```lua
TaskVehicleDriveStraightToPoint(driver, vehicle, x, y, z, p5, p6, flag)

-- always available, by hash
Citizen.InvokeNative(0x089FF2FB965F0A29, driver, vehicle, x, y, z, p5, p6, flag)
```

### JavaScript

```js
TaskVehicleDriveStraightToPoint(driver, vehicle, x, y, z, p5, p6, flag);

// by hash
Citizen.invokeNative('0x089FF2FB965F0A29', driver, vehicle, x + 0.0000001, y + 0.0000001, z + 0.0000001, p5 + 0.0000001, p6 + 0.0000001, flag);
```

### C#

```csharp
Function.Call((Hash)0x089FF2FB965F0A29, driver, vehicle, x, y, z, p5, p6, flag);
```

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