# CFX::IS_PED_IN_VEHICLE

- **Hash:** `0x7DA6BC83`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `IsPedInVehicle`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/IS_PED_IN_VEHICLE

## Signature

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

## Parameters

- `ped` (`Ped`) — the ped id
- `vehicle` (`Vehicle`) — the vehicle id

## Returns

`BOOL` — Returns `true` if the specified `ped` is in the specified `vehicle`

## Usage

### Lua

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

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

### JavaScript

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

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

### C#

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

*Sources: Cfx.re native reference.*
