GetVehicleMaxPassengers: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">getVehicleMaxPassengers ( vehicle )</syntaxhighlight> | |||
==Required Arguments== | ==Required Arguments== | ||
'''Vehicle:''' A handle to the vehicle that you wish to know the maximum capacity of. | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">newcar = createVehicle ( 520, 1024, 1024, 1024 ) | |||
maxseats = getVehicleMaxPassengers ( newcar ) | |||
serverChat ( "This vehicle supports ", maxseats, " passengers." )</syntaxhighlight> |
Revision as of 02:52, 18 May 2006
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 ) serverChat ( "This vehicle supports ", maxseats, " passengers." )