---
title: "GetVehicleSeats | open.mp"
description: "Gets the number of seats in the vehicle."
canonical: https://omp.itsneufox.com/ru/docs/scripting/functions/GetVehicleSeats
language: ru
---

# GetVehicleSeats

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## Description

Gets the number of seats in the vehicle.

| Name | Description |
| --- | --- |
| modelid | ID of the vehicle model. |

## Return Values

Returns the number of seats.

**255** if the model is invalid.

## Examples

```c
new vehicleid = GetPlayerVehicleID(playerid);
new modelid = GetVehicleModel(vehicleid);
new seats = GetVehicleSeats(modelid);

new string[64];
format(string, sizeof(string), "Number of seats in this vehicle: %d", seats);
SendClientMessage(playerid, -1, string);
```

## Related Functions

-   [PutPlayerInVehicle](https://omp.itsneufox.com/ru/docs/scripting/functions/PutPlayerInVehicle): Puts a player in a vehicle.
