Garry's Mod Wiki

Panel:SetModel

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

Description

Sets the model to be displayed by SpawnIcon.

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

Arguments

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.