The Lab
TASK native

TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT

returns void8 paramsbuild 1207

Tasks driver to drive vehicle in a straight line to (x, y, z).

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); // 0x089FF2FB965F0A29 b1207

Parameters

#NameType
1driverPed
2vehicleVehicle
3xfloat
4yfloat
5zfloat
6p5float
7p6float
8flagint

Facts

Facts about TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
Name
TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
Hash
0x089FF2FB965F0A29
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x089FF2FB965F0A29, -- TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
  PlayerPedId(), -- Ped driver
  0, -- Vehicle vehicle
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float p5
  0.0, -- float p6
  0 -- int flag
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x089FF2FB965F0A29", // TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
  PlayerPedId(), // Ped driver
  0, // Vehicle vehicle
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float p5
  0.0, // float p6
  0 // int flag
);
C#
Function.Call((Hash)0x089FF2FB965F0A29, // TASK_VEHICLE_DRIVE_STRAIGHT_TO_POINT
  API.PlayerPedId(), // Ped driver
  0, // Vehicle vehicle
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float p5
  0.0f, // float p6
  0 // int flag
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.