VehicleClient

getVehicleModelNumberOfSeats

GET_VEHICLE_MODEL_NUMBER_OF_SEATS0x2AD93716F184EDA4

The GTA V native GET_VEHICLE_MODEL_NUMBER_OF_SEATS of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleModelNumberOfSeats, in JavaScript and in Lua.

SignatureJavaScript
getVehicleModelNumberOfSeats(modelHash: Hash): number
SignatureLua
getVehicleModelNumberOfSeats(modelHash: Hash): integer

Usage

JavaScript
const result = getVehicleModelNumberOfSeats(modelHash);
Lua
local result = getVehicleModelNumberOfSeats(modelHash)

Parameters

ParameterTypeJavaScriptLua
modelHashHashnumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns max number of passengers (including the driver) for the specified vehicle model.

Full list of vehicles by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicles.json

Reference

Namespace
Vehicle VEHICLE
In the game
int GET_VEHICLE_MODEL_NUMBER_OF_SEATS(Hash modelHash)
Hash
0x2AD93716F184EDA4
Formerly
_GET_VEHICLE_MODEL_MAX_NUMBER_OF_PASSENGERS

Open in the interactive natives reference