vehicles.GetTable

From GMod Wiki

Revision as of 20:17, 24 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax vehicles.GetTable( )
Where is this used?
Description:
Returns a table of loaded vehicles.
Returns: Table vehicles
Part of Library: Vehicles
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vehicles.GetTable]Vehicles.GetTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionGets the vehicle name of the first vehicle.
Used onNewerShared.png
Code
vname = vehicles.GetTable()[1].vname;
OutputN/A


Additional Notes

vehicles.RefreshList() must be called before the client will display any recently added vehicles.

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox