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: 28ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 12
Render Body 0
Render Sidebar 7