list.Add
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=List.Add]List.Add [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Adds 3 items to the PaintMaterials list. |
|---|---|
| Used on | |
| Code | list.Add( "PaintMaterials", "Eye" ) list.Add( "PaintMaterials", "Smile" ) list.Add( "PaintMaterials", "Light" ) |
| Output | N/A |
Additional Notes
- THE VALUE DOES NOT HAVE TO BE A STRING! Remember the table rules.