list.Add

From Garry's Mod
Jump to: navigation, search
 list.Add( )

Contents

Description

Adds an item to a named list

Arguments

string identifier

The list identifier

Arguments

any item

The item to add to the list

Examples

Example

From weapons/gmod_tool/stools/paint.lua

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


Personal tools
Navigation