RedM Natives

TASK_LEAVE_ANY_VEHICLE

Flags are the same flags used in TASK_LEAVE_VEHICLE This is the server-side RPC native equivalent of the client native TASK_LEAVE_ANY_VEHICLE.

Hash0xDBDD79FA
Runtime nameTaskLeaveAnyVehicle
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void TASK_LEAVE_ANY_VEHICLE(Ped ped, int p1, int flags);

Parameters

NameTypeDescription
pedPed—
p1int—
flagsint—

Returns void

Description

Cfx.re native reference

Flags are the same flags used in TASK_LEAVE_VEHICLE

This is the server-side RPC native equivalent of the client native TASK_LEAVE_ANY_VEHICLE.

Usage

Lua
TaskLeaveAnyVehicle(ped, p1, flags)

-- always works, by hash
Citizen.InvokeNative(0xdbdd79fa, ped, p1, flags)
JavaScript and C#
JavaScript
TaskLeaveAnyVehicle(ped, p1, flags);

// by hash
Citizen.invokeNative('0xdbdd79fa', ped, p1, flags);
C#
Function.Call((Hash)0xdbdd79fa, ped, p1, flags);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.