Jobs Not Working DarkRP

I can’t find the problem in this code, can anyone else?


TEAM_BANKER = DarkRP.createJob("Banker", {
   color = Color(0, 255, 239, 255),
   model = {"models/player/mossman.mdl"},
   description = [[You are in charge of the bank and can run OTHER PEOPLES money printers and charge them for it.]],
   weapons = {},
   command = "bank",
   max = 1,
   salary = 60,
   admin = 0,
   vote = false,
   hasLicense = true,
   candemote = true,
})

TEAM_BANKG = DarkRP.createJob("Bank Guard", {
   color = Color(2, 96, 91, 255),
   model = {"models/player/odessa.mdl"},
   description = [[You are in charge of keeping the bank safe.]],
   weapons = {"","stunstick"},
   command = "bankg",
   max = 2,
   salary = 60,
   admin = 0,
   vote = false,
   hasLicense = true,
   candemote = true,
})

TEAM_THIEF = DarkRP.createJob("Thief", {
   color = Color(0, 0, 0, 255),
   model = {"models/player/arctic.mdl"},
   description = [[Raid peoples homes and steal their stuff!]],
   weapons = {"lockpick"},
   command = "thief",
   max = 4,
   salary = 45,
   admin = 0,
   vote = false,
   hasLicense = false,
   candemote = true,
})

TEAM_KIDNAPPER = DarkRP.createJob("Kidnapper", {
	color = Color(76, 90, 123, 60),
	model = {"models/Characters/hostage_03.mdl"},
	description = [[You can kidnap people and hold them for a ransom. But be careful, the cops will come after you if you do.]],
	weapons = {"weapon_cuff_rope"},
	command = "kidnapper",
	max = 2,
	salary = 30,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = true,
})

TEAM_SYNDICATE = DarkRP.createJob("The Syndicate", {
   color = Color(232, 39, 26, 255),
   model = {"models/player/suits/male_04_closed_coat_tie.mdl"},
   description = [[You are a complex, but organized high-class criminal gang, you actually organize and plan before a raid, know Payday? Like that.]],
   weapons = {""},
   command = "syndicate",
   max = 6,
   salary = 80,
   admin = 0,
   vote = false,
   hasLicense = false,
   candemote = true,
})

TEAM_SYNDICATELEAD = DarkRP.createJob("The Syndicate Leader", {
   color = Color(232, 39, 26, 255),
   model = {"models/player/suits/male_04_closed_coat_tie.mdl"},
   description = [[You are the leader of a complex, but organized high-class criminal gang, you actually organize and plan before a raid, know Payday? Like that.]],
   weapons = {""},
   command = "synlead",
   max = 1,
   salary = 100,
   admin = 0,
   vote = false,
   hasLicense = false,
   candemote = true,
})

TEAM_HITMAN = DarkRP.createJob("Hitman", {
   color = Color(30, 255, 0, 255),
   model = {"models/player/leet.mdl"},
   description = [[You are hired to kill people.]],
   weapons = {""},
   command = "hitm",
   max = 2,
   salary = 55,
   admin = 0,
   vote = true,
   hasLicense = false,
   candemote = true,
})

TEAM_SNIPER = DarkRP.createJob("Sniper for Hire", {
   color = Color(41, 239, 49, 255),
   model = {"models/blacklist/spy1.mdl"},
   description = [[Get hired by a gang or another client to assist in raids. Work for a gang full time or just a job.]],
   weapons = {""},
   command = "sniper",
   max = 2,
   salary = 90,
   admin = 0,
   vote = false,
   hasLicense = false,
   candemote = true,
   customCheck = function(ply) return ply:IsUserGroup("donator") or ply:IsSuperAdmin() end,
   CustomCheckFailMsg = "You need to be a donator to become a Sniper for Hire." 
})

TEAM_STAFF = DarkRP.createJob("Staff on Duty", {
	color = Color(12, 134, 89, 65),
	model = {"models/player/Combine_Super_Soldier.mdl"},
	description = [[Staff for the server that help keeps the server a fun playing environment. This is a non-RP job so don't walk around playing or run money printers!]],
	weapons = {""},
	command = "staff",
	max = 3,
	salary = 0,
	admin = 1,
	vote = false,
	hasLicense = false,
	candemote = false,
})



Does it produce any errors or it just doesn’t do anything?

It just doesn’t do anything. The jobs aren’t being added.

Are you sure the file is being executed? Where did you place it?

There’s nothing wrong with this code. Most likely you have it in the wrong file or something

edit: ninja-ish

edit: just copy my post then w/e

Please check console for anything script/lua errors. Because this looks fine. If there are none, then you must’ve placed it in the incorrect directory.

It is placed under /garrysmod/addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua

I have some errors that I’m working on from another addon (A scoreboard), could that be the problem?

Doubt it. Upload the whole jobs.lua file, I just tried your code and it works fine for me (Are you sure you’re using DarkRP 2.5+?)

They are all working now. It somehow fixed itself.

Thanks anyhow!