Jobs and bodygroupes problem

So on my shitty starwarsrp server, I was trying to add bodygroupes to job’s models. I used the SetBodygroup function


TEAM_SWAMPTROOPERCOM = DarkRP.createJob("Swamp Trooper Commander", {
   color = Color(255, 0, 0, 255),
   model = {"models/player/swamptrooper.mdl"},
   description = [[YOU ARE NOW AS COOL AS SCARCE HIMSELF. You are the commander of the swamp trooper regiment and control all the dankness that flows through the memes. You also lead your troopers to victory and come up with cool new starts to destroy the REBEL SCUM.]],
   weapons = {"weapon_jew_emp_rifle", "weapon_752bf3_dh17", "weapon_camo"},
   command = "swamptroopercom",
   max = 1,
   salary = 666,
   admin = 0,
   vote = false,
   hasLicense = true,
   candemote = false,
   -- CustomCheck
   medic = false,
   chief = false,
   mayor = false,
   hobo = false,
   cook = false,
   category = "Swamptroopers",
   PlayerSpawn = function(ply) return ply:SetBodygroup(1, 2) end,
})

Now the bodygroup function did not work on this playermodel but worked on this medic one.


TEAM_MEDTROOPERMAJ = DarkRP.createJob("Medic Trooper Major", {
   color = Color(255, 0, 0, 255),
   model = {"models/player/hydro/imperial_stormsurgeon/stormsurgeon.mdl"},
   description = [[You are a Medic trooper heal and resupply others in need. Make sure everybody is healthy and ready to fight. Control and destroy viruses on the ship. You are a Major now. You have nearly full control and you can control little medical squadrons if the commander let's you]],
   weapons = {"weapon_bactainjector", "weapon_752bf3_e11", "weapon_752_dh17"},
   command = "medtroopermaj",
   max = 99,
   salary = 300,
   admin = 0,
   vote = false,
   hasLicense = true,
   candemote = false,
   -- CustomCheck
   medic = false,
   chief = false,
   mayor = false,
   hobo = false,
   cook = false,
   category = "Medictroopers",
   PlayerSpawn = function(ply) return ply:SetBodygroup(1,0) end,
})


I am confused on what I am doing wrong, I have tried multiple different arrangements of variables for X and Y. X being the type of bodygroup (Skin, Hat, Beard) and Y being the variant (Blue, Yellow)

This is the workshop link for the swamptrooper or the one that was not working. http://steamcommunity.com/sharedfiles/filedetails/?id=391575055&searchtext=swamptrooper