GetVehicleMaxPassengers

From Multi Theft Auto: Wiki
Revision as of 04:28, 30 March 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

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

Syntax

int getVehicleMaxPassengers (vehicle 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 )

 serverChat ( "This vehicle supports ", maxseats, " passengers." )