The Lab
TASK native

TASK_VEHICLE_DRIVE_WANDER

returns void4 paramsbuild 1207

Tasks ped to drive vehicle around aimlessly at speed with drivingStyle.

Signature

C
void TASK_VEHICLE_DRIVE_WANDER(Ped ped, Vehicle vehicle, float speed, int drivingStyle); // 0x480142959D337D00 b1207

Parameters

#NameType
1pedPed
2vehicleVehicle
3speedfloat
4drivingStyleint

Facts

Facts about TASK_VEHICLE_DRIVE_WANDER
Name
TASK_VEHICLE_DRIVE_WANDER
Hash
0x480142959D337D00
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(0x480142959D337D00, -- TASK_VEHICLE_DRIVE_WANDER
  PlayerPedId(), -- Ped ped
  0, -- Vehicle vehicle
  0.0, -- float speed
  0 -- int drivingStyle
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x480142959D337D00", // TASK_VEHICLE_DRIVE_WANDER
  PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0.0, // float speed
  0 // int drivingStyle
);
C#
Function.Call((Hash)0x480142959D337D00, // TASK_VEHICLE_DRIVE_WANDER
  API.PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0.0f, // float speed
  0 // int drivingStyle
);
All TASK natives

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