Jobe Code

Hello, I am requesting help for coding a job, if you’re up for it, what I need help with is this, I’m not sure how to properly set bodygroups and skins with the job code.

I want it to look like this:

but what it ends up looking like is this:

if you could help me that would be great! Thank you.

Playermodel pack used:

Origional code:

TEAM_GRANDADMIRAL = DarkRP.createJob("Grand Admiral", {
    color = Color(255, 255, 255, 255),
    model = {"models/player/scifi_male_09.mdl"},
    description = [[You are the Grand Admiral, you are the highest in charge and everyone has to listen to you.]],
    weapons = {"weapon_physgun", "voice_amplifier", "gmod_tool", "keys", "tfa_swch_ll30"},
    command = "grandadmiral",
    max = 0,
    salary = 250,
    admin = 0,
    vote = false,
    hasLicense = true,
    candemote = false,
    category = "Admiral",
    PlayerSpawn = function(ply)
        ply:SetBodygroup(1, 3)
        ply:SetBodygroup(2, 1)
        ply:SetBodygroup(3, 7)
        ply:SetBodygroup(4, 3)
        ply:SetBodygroup(5, 4)
        ply:SetBodygroup(7, 1)

[editline]29th August 2017[/editline]

Ignore the typo in the title, it won’t let me change it.

Set the skin before the bodygroup.

Thank you, I’ll try that, but also some of the other bodygroups don’t work, I’ll highlight them tomorrow when I get back on my pc.

If they don’t, than either the model doesn’t support them or you’re using the wrong numbers.

I am probably using the wrong numbers as I know the model supports them.

If you get the Addon BodygroupR and just install the playermodel (and all the bodygroup files within the same folder for the playermodel) into the addons/ folder you won’t need to add the bodygroups to the jobcode.

so addons/spacecadetmodel/

BodygroupR will naturally pick up all the extra items for you anyway, so players or yourself can just hold C click on Bodygroupr and you’ll see all the options to change your playermodel or bodygroups there.

I don’t want players to be able to change their own body groups though, that’s the thing.