Spawnicon update bodygroups

Hi,
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!

I’ll just use separate models, cannot figure out the bodygroups. Marking as solved, sorry if you came here for an answer :confused: