Garry's Mod Wiki


  Panel:SetModel( string ModelPath, number skin = 0, string bodygroups = nil )


Sets the model to be displayed by SpawnIcon.

This must be called after setting size if you wish to use a different size spawnicon


1 string ModelPath
The path of the model to set
2 number skin = 0
The skin to set
3 string bodygroups = nil
The body groups to set. Each single-digit number in the string represents a separate bodygroup, This argument must be 9 characters in total.