vehicles.GetTable
From GMod Wiki
Revision as of 20:17, 24 November 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
vehicles.GetTable( ) Where is this used? |
Description: | |
Returns a table of loaded vehicles. | |
Returns: | Table vehicles |
Part of Library: | Vehicles |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Vehicles.GetTable]Vehicles.GetTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Gets the vehicle name of the first vehicle. |
---|---|
Used on | |
Code | vname = vehicles.GetTable()[1].vname; |
Output | N/A |
Additional Notes
vehicles.RefreshList() must be called before the client will display any recently added vehicles.