RedM Natives

IS_PED_IN_VEHICLE

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

Hash0xA3EE4A07279BB9DB
Runtime nameIsPedInVehicle
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA3EE4A07279BB9DB

Signature

BOOL IS_PED_IN_VEHICLE(Ped ped, Vehicle vehicle, BOOL atGetIn);

Parameters

NameTypeDescription
pedPed—
vehicleVehicle—
atGetInBOOL—

Returns BOOL

Description

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

Usage

Lua
local retval = IsPedInVehicle(ped, vehicle, atGetIn)

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

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

Sources

alloc8or RDR3 NativeDB

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