RedM Natives

IS_PED_SITTING_IN_ANY_VEHICLE

Detect if ped is in any vehicle [True/False]

Hash0x826AA586EDB9FEF8
Runtime nameIsPedSittingInAnyVehicle
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x826AA586EDB9FEF8

Signature

BOOL IS_PED_SITTING_IN_ANY_VEHICLE(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns BOOL

Description

Detect if ped is in any vehicle
[True/False]

Usage

Lua
local retval = IsPedSittingInAnyVehicle(ped)

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

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

Sources

alloc8or RDR3 NativeDB

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