RedM Natives

IS_PED_IN_ANY_VEHICLE

Gets a value indicating whether the specified ped is in any vehicle.

Hash0x997ABD671D25CA0B
Runtime nameIsPedInAnyVehicle
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x997ABD671D25CA0B

Signature

BOOL IS_PED_IN_ANY_VEHICLE(Ped ped, BOOL atGetIn);

Parameters

NameTypeDescription
pedPed—
atGetInBOOL—

Returns BOOL

Description

Gets a value indicating whether the specified ped is in any vehicle.

Usage

Lua
local retval = IsPedInAnyVehicle(ped, atGetIn)

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

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

Sources

alloc8or RDR3 NativeDB

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