list.Add

From GMod Wiki

Jump to: navigation, search
Function
Syntax list.Add( String name, Var item )
Where is this used?
Description:
Adds an item to a named list.
Returns: nil
Part of Library: list
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=List.Add]List.Add [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionAdds 3 items to the PaintMaterials list.
Used onNewerShared.png
Code
 
list.Add( "PaintMaterials", "Eye" )
list.Add( "PaintMaterials", "Smile" )
list.Add( "PaintMaterials", "Light" )
 
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox