GetVehicleMaxPassengers

From Multi Theft Auto: Wiki
Revision as of 20:28, 20 May 2006 by Ransom (talk | contribs)
Jump to navigation Jump to search

Description

This function returns the maximum number of passengers that a specified vehicle can hold.

Syntax

getVehicleMaxPassengers ( vehicle )

Required Arguments

  • Vehicle: A handle to the vehicle that you wish to know the maximum capacity of.

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )
maxseats = getVehicleMaxPassengers ( newcar )
outputChatBox ( "This vehicle supports ", maxseats, " passengers." )

See Also