The Lab
TASK native

TASK_LEAVE_VEHICLE

returns void4 paramsbuild 1207

Tasks ped to leave vehicle, with flags controlling how it exits.

Signature

C
void TASK_LEAVE_VEHICLE(Ped ped, Vehicle vehicle, int flags, Ped unkPed); // 0xD3DBCE61A490BE02 b1207

Parameters

#NameType
1pedPed
2vehicleVehicle
3flagsint
4unkPedPed

Facts

Facts about TASK_LEAVE_VEHICLE
Name
TASK_LEAVE_VEHICLE
Hash
0xD3DBCE61A490BE02
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(0xD3DBCE61A490BE02, -- TASK_LEAVE_VEHICLE
  PlayerPedId(), -- Ped ped
  0, -- Vehicle vehicle
  0, -- int flags
  PlayerPedId() -- Ped unkPed
)
JavaScript
Citizen.invokeNative("0xD3DBCE61A490BE02", // TASK_LEAVE_VEHICLE
  PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0, // int flags
  PlayerPedId() // Ped unkPed
);
C#
Function.Call((Hash)0xD3DBCE61A490BE02, // TASK_LEAVE_VEHICLE
  API.PlayerPedId(), // Ped ped
  0, // Vehicle vehicle
  0, // int flags
  API.PlayerPedId() // Ped unkPed
);
All TASK natives

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