vehicles.Add

From GMod Wiki

Revision as of 17:29, 25 September 2009 by Dlaor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax vehicles.Add( String vehicle_name, String menu_name, String menu_icon_mat )
Where is this used?
Description:
Adds a vehicle to the client's vehicles table.
Returns: nil
Part of Library: Vehicles
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Vehicles.Add]Vehicles.Add [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionServer sends a command to client to add a new vehicle to its vehicle list. Client would then call vehicles.RefreshList.
Used onNewerServer.png
Code
player:SendLua("vehicles.Add( " .. vname .. ", " .. name .. ", " .. icon .. " );");
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox