# VEHICLE::GET_VEHICLE_NUMBER_OF_PASSENGERS

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

## Signature

```c
int GET_VEHICLE_NUMBER_OF_PASSENGERS(Vehicle vehicle);
```

## Parameters

- `vehicle` (`Vehicle`)

## Returns

`int`

## Description

Gets the number of passengers, NOT including the driver. Use IS_VEHICLE_SEAT_FREE(Vehicle, -1) to also check for the driver

## Usage

### Lua

```lua
local retval = GetVehicleNumberOfPassengers(vehicle)

-- always available, by hash
local retval = Citizen.InvokeNative(0x59F3F16577CD79B2, vehicle, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetVehicleNumberOfPassengers(vehicle);

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

### C#

```csharp
int retval = Function.Call<int>((Hash)0x59F3F16577CD79B2, vehicle);
```

*Sources: alloc8or RDR3 NativeDB.*
