DarkRP Playermodel Body Groups

is there any way you can set what body group attributes you wish a job to spawn with as, I have some playermodels that are really nice but rely on the changing of these and I haven’t found any way to do so.

You have to write in job config :


PlayerSpawn = function(ply)
   ply:SetBodygroup(1,0)
   ply:SetBodygroup(2,4)
   ply:SetBodygroup(3,2)
end,

Example:


TEAM_CITIZEN = DarkRP.createJob("Citizen", {
    color = Color(20, 150, 20, 255),
    model = {
        "models/player/Group01/Female_01.mdl",
        "models/player/Group01/Female_02.mdl",
        "models/player/Group01/Female_03.mdl",
        "models/player/Group01/Female_04.mdl",
        "models/player/Group01/Female_06.mdl",
        "models/player/group01/male_01.mdl",
        "models/player/Group01/Male_02.mdl",
        "models/player/Group01/male_03.mdl",
        "models/player/Group01/Male_04.mdl",
        "models/player/Group01/Male_05.mdl",
        "models/player/Group01/Male_06.mdl",
        "models/player/Group01/Male_07.mdl",
        "models/player/Group01/Male_08.mdl",
        "models/player/Group01/Male_09.mdl"
    },
    description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
    weapons = {},
    command = "citizen",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
    PlayerSpawn = function(ply)
     ply:SetBodygroup(1,0)
     ply:SetBodygroup(2,4)
     ply:SetBodygroup(3,2)
end,

})



Needed this too :slight_smile:
Thnx