Revision Difference
list.Add#515968
<function name="Add" parent="list" type="libraryfunc">
<description>Adds an item to a named list</description>
<realm>Shared and Menu</realm>
<args>
<arg name="identifier" type="string">The list identifier</arg>
<arg name="item" type="any">The item to add to the list</arg>
</args>
</function>
⤶
{{Example⤶
| Description = From weapons/gmod_tool/stools/paint.lua⤶
| Code = list.Add( "PaintMaterials", "Eye" )⤶
⤶
<example>⤶
<description>From weapons/gmod_tool/stools/paint.lua</description>⤶
<code>⤶
list.Add( "PaintMaterials", "Eye" )⤶
list.Add( "PaintMaterials", "Smile" )
list.Add( "PaintMaterials", "Light" )
}} </code>⤶
⤶
</example>