getVehicleMaxPassengers | Multi Theft Auto: Wiki Skip to content

getVehicleMaxPassengers

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns the maximum number of passengers that a specified vehicle can hold. Only passenger seats are counted, the driver seat is excluded.

Important

Only passenger seats are counted, the driver seat is excluded.

Syntax

getVehicleMaxPassengers ( )

Code Examples

server

This example creates a vehicle then gets the number of passenger seats and outputs it in the chat box.

newcar = createVehicle ( 520, 1024, 1024, 1024 ) -- create a vehicle
numseats = getVehicleMaxPassengers ( newcar ) -- get the passenger seat count
outputChatBox ( "This vehicle supports " .. numseats .. " passengers." ) -- show it in the chat

See Also

Vehicle Functions