getVehicleModelNumberOfSeats
GET_VEHICLE_MODEL_NUMBER_OF_SEATS0x2AD93716F184EDA4The 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.
getVehicleModelNumberOfSeats(modelHash: Hash): numbergetVehicleModelNumberOfSeats(modelHash: Hash): integerUsage
JavaScript
const result = getVehicleModelNumberOfSeats(modelHash);Lua
local result = getVehicleModelNumberOfSeats(modelHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
modelHash | Hash | number | integer |
Returns
int JavaScript number, Lua integerNotes
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