---
title: "GetVehicleSeats | open.mp"
description: "Pobiera liczbę miejsc w pojeździe."
canonical: https://omp.itsneufox.com/pl/docs/scripting/functions/GetVehicleSeats
language: pl
---

# GetVehicleSeats

ostrzeżenie

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

## Opis

Pobiera najwyższe seatid w pojeździe.

| Name | Description |
| --- | --- |
| modelid | ID modelu pojazdu. |

## Wartości zwrotne

Najwyższe seatid pojazdu.

**255** gdy model jest niepoprawny.

## Przykład

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

new string[64];
format(string, sizeof(string), "Najwyzsze seatid w tym pojezdzie: %d", seats);
SendClientMessage(playerid, -1, string);
```

## Powiązane funkcje

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