# PED::IS_PED_SITTING_IN_VEHICLE

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

## Signature

```c
BOOL IS_PED_SITTING_IN_VEHICLE(Ped ped, Vehicle vehicle);
```

## Parameters

- `ped` (`Ped`)
- `vehicle` (`Vehicle`)

## Returns

`BOOL`

## Description

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

## Usage

### Lua

```lua
local retval = IsPedSittingInVehicle(ped, vehicle)

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

### JavaScript

```js
const retval = IsPedSittingInVehicle(ped, vehicle);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
