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: http://i.imgur.com/U2Alp5O.png
but what it ends up looking like is this: http://i.imgur.com/Fko5KYh.png
if you could help me that would be great! Thank you.
Playermodel pack used: http://steamcommunity.com/sharedfiles/filedetails/?id=173932955
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:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetBodygroup(1, 3)
ply:SetBodygroup(2, 1)
ply:SetBodygroup(3, 7)
ply:SetBodygroup(4, 3)
ply:SetBodygroup(5, 4)
ply:SetBodygroup(7, 1)
ply:SetSkin(2)
end
})
[editline]29th August 2017[/editline]
Ignore the typo in the title, it won’t let me change it.