I am trying to update bodygroups of spawnicons, but it isn’t getting updated. Please help, what am I doing wrong?
Code I’m using below:
helm=vgui.Create("SpawnIcon", invpanel) helm:SetPos(Sw(200),Sh(37.5)) helm:SetSize(Sw(100),Sh(100)) helm:SetModel("models/rpg/headarmor.mdl",0,2)
Result: the spawnicon remains on bodygroup 1.
Thank you in advance!