RedM Natives

IS_PED_IN_ANY_VEHICLE

Hash0x3B0171EE
Runtime nameIsPedInAnyVehicle
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL IS_PED_IN_ANY_VEHICLE(Ped ped);

Parameters

NameTypeDescription
pedPed

the ped id

Returns BOOL — Returns `true` if the specified `ped` is in any vehicle

Usage

Lua
local retval = IsPedInAnyVehicle(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x3b0171ee, ped, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPedInAnyVehicle(ped);

// by hash
const retval = Citizen.invokeNative('0x3b0171ee', ped, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x3b0171ee, ped);

Sources

Cfx.re native reference

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