surface.SetMaterial
Example
Example usage of this function in conjunction with Material. Note how the Material function will only be called once and its output is cached for performance.
In this example the .png file is located in materials/gui/ContentIcon-normal.png.
Garry's Mod
Rust
Steamworks
Wiki Help