Garry's Mod Wiki


  SpawnIcon:SetBodyGroup( number bodygroup, number value )


This is used internally - although you're able to use it you probably shouldn't. This is done automatically by SpawnIcon. You do not need to call this. Doing so may cause unforeseen consequences.

Sets the bodygroups, so it can be retrieved with SpawnIcon:GetBodyGroup. Use Panel:SetModel instead.


1 number bodygroup
The id of the bodygroup you're setting. Starts from 0.
2 number value
The value you're setting the bodygroup to. Starts from 0.