RedM Natives

IS_PED_ON_VEHICLE

Gets a value indicating whether the specified ped is on top of any vehicle.

Hash0x67722AEB798E5FAB
Runtime nameIsPedOnVehicle
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x67722AEB798E5FAB

Signature

BOOL IS_PED_ON_VEHICLE(Ped ped, BOOL p1);

Parameters

NameTypeDescription
pedPed—
p1BOOL—

Returns BOOL

Description

Gets a value indicating whether the specified ped is on top of any vehicle.

Return 1 when ped is on vehicle.
Return 0 when ped is not on a vehicle.

Usage

Lua
local retval = IsPedOnVehicle(ped, p1)

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

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

Sources

alloc8or RDR3 NativeDB

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