# PED::IS_PED_ON_VEHICLE

- **Hash:** `0x67722AEB798E5FAB`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `IsPedOnVehicle`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/IS_PED_ON_VEHICLE

## Signature

```c
BOOL IS_PED_ON_VEHICLE(Ped ped, BOOL p1);
```

## Parameters

- `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

### Lua

```lua
local retval = IsPedOnVehicle(ped, p1)

-- always available, by hash
local retval = Citizen.InvokeNative(0x67722AEB798E5FAB, ped, p1, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsPedOnVehicle(ped, p1);

// by hash
const retval = Citizen.invokeNative('0x67722AEB798E5FAB', ped, p1, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x67722AEB798E5FAB, ped, p1);
```

*Sources: alloc8or RDR3 NativeDB.*
