So when i try to add some custom jobs in the jobs.lua 2 out of all the jobs appear in the f4 menu which are swat and staff on duty.
Here's the code i'm using for the jobs maybe you guys can figure it out for me.
TEAM_POLICE = DarkRP.createJob("S.W.A.T", {
color = Color(5, 0, 255, 255),
model = {"models/player/gasmask.mdl"},
description = [[]],
weapons = {"m9k_m4", "weapon_batteringram", "m9k_m416"},
command = "SWAT",
max = 4,
salary = 300,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Civil Protection",
})
TEAM_STAFF = DarkRP.createJob("Staff On Duty", {
color = Color(0, 0, 0, 255),
model = {"models/player/charple.mdl"},
description = [[Swag]],
weapons = {"med_kit", "weapon_bugbait", "spiderman's_swep"},
command = "sod",
max = 0,
salary = 1,
admin = 1,
vote = false,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Other",
})
if not DarkRP.disabledDefaults["modules"]["hungermod"] then
TEAM_COOK = DarkRP.createJob("Cook", {
color = Color(238, 99, 99, 255),
model = {"models/player/mossman.mdl"},
description = [[As a cook, it is your responsibility to feed the other members of your city.
You can spawn a microwave and sell the food you make:
/buymicrowave]],
weapons = {},
command = "cook",
max = 2,
salary = 1,
admin = 1,
vote = false,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})
TEAM_DRUGGY = DarkRP.createJob("Drug Dealer", {
color = Color(51, 204, 255, 255),
model = {"models/player/Kleiner.mdl"},
description = [[You deal drugs to those in need.
Be careful, may get arrested if caught in the act!]],
weapons = {},
command = "drug",
max = 5,
salary = 65,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})
TEAM_GUARD = DarkRP.createJob("Guard", {
color = Color(0,200,50,255),
model = {"models/player/barney.mdl"},
description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
weapons = {"weapon_deagle2"},
command = "guard",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = {"models/player/sunabouzu.mdl"},
description = [[People hire you to take out other people,
this job require you to be completely focussed.
A single breath can make you loose a shot.]],
weapons = {"m9k_m24"},
command = "hitman",
max = 4,
salary = 85,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = {"models/player/robber.mdl"},
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"lockpick"},
command = "thief",
max = 5,
salary = 65,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizens",
})
end
You didn't end the if statement in the cook job
Remove the end underneath Thief, and add a end under Cook. [Basically what he said above me, I forgot to hit post XD]
Thanks guys for the help i just put the cook job under thief.
Sorry, you need to Log In to post a reply to this thread.