IS_PED_ON_VEHICLE
Gets a value indicating whether the specified ped is on top of any vehicle.
Hash
0x67722AEB798E5FABRuntime name
IsPedOnVehicleNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x67722AEB798E5FABSignature
BOOL IS_PED_ON_VEHICLE(Ped ped, BOOL p1);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | BOOL | — |
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
local retval = IsPedOnVehicle(ped, p1)
-- always works, by hash
local retval = Citizen.InvokeNative(0x67722AEB798E5FAB, ped, p1, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedOnVehicle(ped, p1);
// by hash
const retval = Citizen.invokeNative('0x67722AEB798E5FAB', ped, p1, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x67722AEB798E5FAB, ped, p1);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.