# CFX::IS_PED_IN_ANY_VEHICLE

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

## Signature

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

## Parameters

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

## Returns

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

## Usage

### Lua

```lua
local retval = IsPedInAnyVehicle(ped)

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

### JavaScript

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

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

### C#

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

*Sources: Cfx.re native reference.*
