TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
Old name: _TASK_VEHICLE_DRIVE_TO_POINT
Hash
0x089FF2FB965F0A29Runtime name
TaskVehicleDriveStraightToPointNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT(Ped driver, Vehicle vehicle, float x, float y, float z, float p5, float p6, int flag);Parameters
| Name | Type | Description |
|---|---|---|
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
TaskVehicleDriveStraightToPoint(driver, vehicle, x, y, z, p5, p6, flag)
-- always works, by hash
Citizen.InvokeNative(0x089FF2FB965F0A29, driver, vehicle, x, y, z, p5, p6, flag)JavaScript and C#
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);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. 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.