The Lab
TASK native

TASK_LEAVE_ANY_VEHICLE

returns void3 paramsbuild 1207

Tasks ped to leave whatever vehicle it is in, with taskFlag controlling how it exits.

Signature

C
void TASK_LEAVE_ANY_VEHICLE(Ped ped, int p1, int taskFlag); // 0x504D54DF3F6F2247 b1207

Parameters

#NameType
1pedPed
2p1int
3taskFlagint

Facts

Facts about TASK_LEAVE_ANY_VEHICLE
Name
TASK_LEAVE_ANY_VEHICLE
Hash
0x504D54DF3F6F2247
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(0x504D54DF3F6F2247, -- TASK_LEAVE_ANY_VEHICLE
  PlayerPedId(), -- Ped ped
  0, -- int p1
  0 -- int taskFlag
)
JavaScript
Citizen.invokeNative("0x504D54DF3F6F2247", // TASK_LEAVE_ANY_VEHICLE
  PlayerPedId(), // Ped ped
  0, // int p1
  0 // int taskFlag
);
C#
Function.Call((Hash)0x504D54DF3F6F2247, // TASK_LEAVE_ANY_VEHICLE
  API.PlayerPedId(), // Ped ped
  0, // int p1
  0 // int taskFlag
);
All TASK natives

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