Garry's Mod Wiki

Revision Difference

MatSelect:AddMaterial#562614

<function name="AddMaterial" parent="MatSelect" type="panelfunc">⤶ <description>Adds a new material to the selection list.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="label" type="string">Tooltip for the material, for when the player hovers over the material.</arg>⤶ <arg name="path" type="string">Path to the material. Relative to `materials/` folder (do not include it), and do not include the `.vmt` extension.</arg>⤶ </args>⤶ </function>⤶