Garry's Mod Wiki

Revision Difference

list.Add#511456

<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</description>⤶ <code>⤶ list.Add( "PaintMaterials", "Eye" )⤶ list.Add( "PaintMaterials", "Smile" )⤶ list.Add( "PaintMaterials", "Light" )⤶ </code>⤶ ⤶ </example>