# PED::IS_PED_IN_ANY_VEHICLE

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

## Signature

```c
BOOL IS_PED_IN_ANY_VEHICLE(Ped ped, BOOL atGetIn);
```

## Parameters

- `ped` (`Ped`)
- `atGetIn` (`BOOL`)

## Returns

`BOOL`

## Description

Gets a value indicating whether the specified ped is in any vehicle.

## Usage

### Lua

```lua
local retval = IsPedInAnyVehicle(ped, atGetIn)

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

### JavaScript

```js
const retval = IsPedInAnyVehicle(ped, atGetIn);

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

### C#

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

*Sources: alloc8or RDR3 NativeDB.*
