Garry's Mod Wiki

list.Add

list.Add( string identifier, any item )

Description

Adds an item to a named list

Arguments

1 string identifier
The list identifier
2 any item
The item to add to the list

Example

From weapons/gmod_tool/stools/paint.lua

list.Add( "PaintMaterials", "Eye" ) list.Add( "PaintMaterials", "Smile" ) list.Add( "PaintMaterials", "Light" )

Page Links


Special Pages


Wikis

?

Render Time: 39ms

Session 0
DB GetPage 7
Generate Html 10
SaveChanges 8
Render Body 0
Render Sidebar 12