Garry's Mod Wiki

Panel:SetSpawnIcon

  Panel:SetSpawnIcon( string icon )

Description

Sets the .png image to be displayed on a SpawnIcon or the panel it is based on - ModelImage.

Only .png images can be used with this function.

Arguments

1 string icon
A path to the .png material, for example one of the Silkicons shipped with the game.