RedM Natives

IS_PED_SITTING_IN_VEHICLE

Detect if ped is sitting in the specified vehicle [True/False]

Hash0xA808AA1D79230FC2
Runtime nameIsPedSittingInVehicle
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA808AA1D79230FC2

Signature

BOOL IS_PED_SITTING_IN_VEHICLE(Ped ped, Vehicle vehicle);

Parameters

NameTypeDescription
pedPed—
vehicleVehicle—

Returns BOOL

Description

Detect if ped is sitting in the specified vehicle
[True/False]

Usage

Lua
local retval = IsPedSittingInVehicle(ped, vehicle)

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

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

Sources

alloc8or RDR3 NativeDB

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