Garry's Mod Wiki

MatSelect:AddMaterial

  MatSelect:AddMaterial( string label, string path )

Description

Adds a new material to the selection list.

Arguments

1 string label
Tooltip for the material, for when the player hovers over the material.
2 string path
Path to the material. Relative to materials/ folder (do not include it), and do not include the .vmt extension.