DarkRP Wont load custom jobs.

I recently tried to add 2 custom jobs to my job list - Mod on duty and Heisenberg, I also edited 1 class which was my Hitman class because you could not ‘Hit E to place a hit’ on a player. After i did this i tested in-game and none of the jobs would appear. This is the error i received in console -

[Mimix|10|STEAM_0:1:55023387] Lua Error:


[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:32: '}' expected (to close '{' at line 20) near 'customCheck'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0

This is the Mod on duty class -


TEAM_MOD = DarkRP.AddExtraTeam("Mod on Duty", {
		color = Color(255, 0, 0, 255),
		model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
		description = [[You are moderator on duty.]],
		weapons = {},
		command = "aod",
		max = 0,
		salary = 0,
		admin = 1,
		vote = false,
		PlayerSpawn = function(ply) ply:SetHealth(250) end,
		hasLicense = true
		customCheck = function(ply) return ply:GetNWString("usergroup") == "Moderator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Mod Only!"
})

This is the Heisenberg class -


TEAM_MIMIX = AddExtraTeam("Heisenberg", {
		color = Color(96, 96, 96, 255),
		model = "models/player/power_armor_outcast/slow.mdl",
		description = [[I do what i want... when i want. Bitch.]],
		weapons = {"m9k_m416", "m9k_vector2", "m9k_minigun", "lockpick", "m9k_spas12", "m9k_1897winchester", "m9k_scar", "keypad_cracker", 
                           "pro_lockpick_update", "weapon_slam", "weapon_crossbow", "m9k_pkm"},
		command = "mimix",
		max = 1,
		salary = 0,
		admin = 0,
		vote = false,
		hasLicense = true,
		PlayerSpawn = function(ply) ply:SetArmor(100) end,
		customCheck = function(ply) return ply:SteamID() == "STEAM_0:1:55023387" end
		CustomCheckFailMsg = "This job is for Mimix Only!"
})

This is the Hitman class -


TEAM_HITMAN = AddExtraTeam("Hitman", {
	color = Color(102, 153, 153, 255),
	model = "models/player/leet.mdl",
	description = [[You are a Hitman. People give you cash to kill someone. However, use must use the hitman system or you are fail hitman.]],
	weapons = {"m9k_scoped_taurus"},
	command = "hitman",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
})

Addon - This is the Hitman area thing -


/*---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_HITMAN)

This is the full file -


/*---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
 
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
 
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
        Once you've done that, copy and paste the job to this file and edit it.
 
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
 
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
 
 
Add jobs under the following line:
---------------------------------------------------------------------------*/
TEAM_ADMIN = DarkRP.AddExtraTeam("Admin on Duty", {
		color = Color(255, 0, 0, 255),
		model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
		description = [[You are admin on duty.]],
		weapons = {},
		command = "aod",
		max = 0,
		salary = 0,
		admin = 1,
		vote = false,
		PlayerSpawn = function(ply) ply:SetHealth(250) end,
		hasLicense = true
		customCheck = function(ply) return ply:GetNWString("usergroup") == "admin" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Admin Only!"
})

TEAM_HOBO = DarkRP.createJob("Hobo", {
		color = Color(139, 69, 39, 255),
		model = "models/player/corpse1.mdl",
		description = [[Everyone look at you in disgust.
		No one helps you survive or gives you money, except for the good samaritans of SteelheartGaming.
		You walk around, begging for money, being refused.]],
		weapons = {"bugbait"},
		command = "hobo",
		max = 0,
		salary = 0,
		admin = 0,
		vote = false,
		hasLicense = false
})

TEAM_MOD = DarkRP.AddExtraTeam("Mod on Duty", {
		color = Color(255, 0, 0, 255),
		model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
		description = [[You are moderator on duty.]],
		weapons = {},
		command = "aod",
		max = 0,
		salary = 0,
		admin = 1,
		vote = false,
		PlayerSpawn = function(ply) ply:SetHealth(250) end,
		hasLicense = true
		customCheck = function(ply) return ply:GetNWString("usergroup") == "Moderator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Mod Only!"
})

TEAM_COP = DarkRP.createJob("Police Officer", {
        color = Color(25, 25, 170, 255),
        model = "models/player/elispolice/police.mdl",
        description = [[The protector of every citizen that lives in the city.
                You have the power to arrest criminals and protect innocents.
                Hit a player with your arrest baton to put them in jail.
                Bash a player with a stunstick and they may learn to obey the law.
        The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
        The Battering Ram can also unfreeze frozen props (if enabled).
        Type /wanted <name> to alert the public to the presence of a criminal.]],
        weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker"},
        command = "cp",
        max = 4,
        salary = 65,
        admin = 0,
        vote = true,
        hasLicense = true,
        ammo = {
                ["m9k_ammo_pistol"] = 60,
})
 
TEAM_CHIEF = DarkRP.createJob("Police Chief", {
        color = Color(20, 20, 255, 255),
        model = "models/player/elispolice/police.mdl",
        description = [[The Chief is the leader of the police force.
                Coordinate the police force to enforce law in the city.
                Hit a player with arrest baton to put them in jail.
                Bash a player with a stunstick and they may learn to obey the law.
                The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
                Type /wanted <name> to alert the public to the presence of a criminal.
                Type /jailpos to set the Jail Position]],
        weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker"},
        command = "chief",
        max = 1,
        salary = 75,
        admin = 0,
        vote = false,
        hasLicense = true,
        chief = true,
        NeedToChangeFrom = TEAM_POLICE,
        ammo = {
                ["m9k_ammo_357"] = 60,
})
 
TEAM_SWATP = DarkRP.AddExtraTeam("S.W.A.T. Pointman", {
                color = Color(135, 206, 235, 255),
                model = "models/player/umbrella_ct/umbrella_ct.mdl",
                description = [[You are a S.W.A.T. Pointman. Protect the mayor and city.]],
                weapons = {"m9k_m416", "m9k_m92beretta", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick"},
                command = "swatp",
                max = 3,
                salary = 85,
                admin = 0,
                vote = true,
                hasLicense = true
		customCheck = function(ply) return ply:GetNWString("usergroup") == "Donator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Donator Only!"
})
 
TEAM_SWATS = DarkRP.AddExtraTeam("S.W.A.T. Sniper", {
                color = Color(135, 206, 235, 255),
                model = "models/player/umbrella_ct/umbrella_ct.mdl",
                description = [[You are a S.W.A.T. Sniper. Protect the mayor and city.]],
                weapons = {"m9k_m98b", "m9k_m92beretta", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick"},
                command = "swats",
                max = 1,
                salary = 85,
                admin = 0,
                vote = true,
                hasLicense = true
		customCheck = function(ply) return ply:GetNWString("usergroup") == "Donator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Donator Only!"
})
 
TEAM_SWATH = DarkRP.AddExtraTeam("S.W.A.T. Heavy Gunner", {
                color = Color(135, 206, 235, 255),
                model = "models/player/umbrella_ct/umbrella_ct.mdl",
                description = [[You are a S.W.A.T. Heavy Gunner. Protect the mayor and city.]],
                weapons = {"m9k_m249lmg", "m9k_m92beretta", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick"},
                command = "swath",
                max = 1,
                salary = 85,
                admin = 0,
                vote = true,
                hasLicense = true		
                customCheck = function(ply) return ply:GetNWString("usergroup") == "Donator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Donator Only!"
})
 
 
TEAM_MAYOR = DarkRP.createJob("Mayor", {
        color = Color(150, 20, 20, 255),
        model = "models/player/breen.mdl",
        description = [[The Mayor of the city creates laws to govern the city.
        If you are the mayor you may create and accept warrants.
        Type /wanted <name>  to warrant a player.
        Type /jailpos to set the Jail Position.
        Type /lockdown initiate a lockdown of the city.
        Everyone must be inside during a lockdown.
        The cops patrol the area.
        /unlockdown to end a lockdown]],
        weapons = {},
        command = "mayor",
        max = 1,
        salary = 120,
        admin = 0,
        vote = true,
        hasLicense = false,
        mayor = true
})
 
TEAM_THIEF = DarkRP.AddExtraTeam("Thief", {
                color = Color(153, 76, 0, 255),
                model = "models/player/phoenix.mdl",
                description = [[You are a thief. You can raid, mug and kidnap.]],
                weapons = {"lockpick", "keypad_cracker"},
                command = "thief",
                max = 4,
                salary = 40,
                admin = 0,
                vote = false,
                hasLicense = false
})
 
TEAM_BANKR = DarkRP.AddExtraTeam("Bank Robber", {
                color = Color(0, 0, 0, 255),
                model = "models/player/tyson/slow.mdl",
                description = [[You rob the bank vaults at the bank. You can work with other criminal jobs.]],
                weapons = {"lockpick", "keypad_cracker"},
                command = "robber",
                max = 2,
                salary = 40,
                admin = 0,
                vote = false,
                hasLicense = false
})

TEAM_HITMAN = AddExtraTeam("Hitman", {
	color = Color(102, 153, 153, 255),
	model = "models/player/leet.mdl",
	description = [[You are a Hitman. People give you cash to kill someone. However, use must use the hitman system or you are fail hitman.]],
	weapons = {"m9k_scoped_taurus"},
	command = "hitman",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
})
 
 TEAM_MEDIC = DarkRP.createJob("Medic", {
		color = Color(0, 255, 255, 255),
		model = "models/player/kleiner.mdl",
		description = [[You heal people for a price.]],
		weapons = {"weapon_medkit"},
		command = "medic",
		max = 2,
		salary = 45,
		admin = 0,
		vote = false,
		hasLicense = false
})

TEAM_LGUN = DarkRP.createJob("Light Arms Dealer", {
        color = Color(255, 140, 0, 255),
        model = "models/player/niko_bellic/slow.mdl",
        description = [[You sell pistols and SMGs to the public.
		But watch out! If you don't have a license, you might be arrested!]],
        weapons = {},
        command = "lgun",
        max = 2,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = false
})
 
TEAM_HGUN = DarkRP.createJob("Heavy Arms Dealer", {
		color = Color(255, 140, 0, 255),
		model = "models/player/niko_bellic/slow.mdl",
		description = [[You sell ARs, SRs, and MGs to the public.
		But watch out! If you don't have a license, you might be arrested!]],
		weapons = {},
		command = "hgun",
		max = 2,
		salary = 50,
		admin = 0,
		vote = false,
		hasLicense = false
})

TEAM_WESTM = DarkRP.createJob("West Side Gang Member", {
		color = Color(0, 0, 255, 255),
		model = {
		"models/player/cripz/slow_2.mdl",
		"models/player/cripz/slow_1.mdl",
		"models/player/cripz/slow_3.mdl"
		},
		description = [[You are part of the West Side Gang, and hate the East Side.]],
		weapons = {},
		command = "westm",
		max = 4,
		salary = 45,
		admin = 0,
		vote = false,
		hasLicense = false
})

TEAM_WESTL = DarkRP.createJob("West Side Gang Leader", {
		color = Color(0, 0, 255, 255),
		model = "models/player/cripz/slow_3.mdl",
		description = [[You lead the West Side Gang Members and hate the East Side.]],
		weapons = {"m9k_uzi", "lockpick", "keypad_cracker"},
		command = "westl",
		max = 1,
		salary = 55,
		admin = 0,
		vote = false,
		hasLicense = false,
		NeedToChangeFrom = TEAM_WESTM
})

TEAM_EASTM = DarkRP.createJob("East Side Gang Member", {
		color = Color(255, 0, 0, 255),
		model = {
		"models/player/bloodz/slow_2.mdl",
		"models/player/bloodz/slow_1.mdl",
		"models/player/bloodz/slow_3.mdl"
		},
		description = [[You are part of the East Side Gang, and hate the West Side.]],
		weapons = {},
		command = "eastm",
		max = 4,
		salary = 45,
		admin = 0,
		vote = false,
		hasLicense = false
})

TEAM_EASTL = DarkRP.createJob("East Side Gang Leader", {
		color = Color(255, 0, 0, 255),
		model = "models/player/bloodz/slow_3.mdl",
		description = [[You lead the East Side Gang Members and hate the West Side.]],
		weapons = {"m9k_uzi", "lockpick", "keypad_cracker"},
		command = "eastl",
		max = 1,
		salary = 55,
		admin = 0,
		vote = false,
		hasLicense = false,
		NeedToChangeFrom = TEAM_EASTM
})

TEAM_SECURE = DarkRP.createJob("Security", {
        color = Color(128, 128, 128, 255),
        model = "models/player/odessa.mdl",
        description = [[You protect people for a price.]],
        weapons = {"m9k_hk45", "stunstick"},
        command = "security",
        max = 3,
        salary = 60,
        admin = 0,
        vote = false,
        hasLicense = false
})
 
TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
        color = Color(124, 252, 0, 255),
        model = "models/player/hidden/hidden.mdl",
        description = [[You sell drugs to the human populace.]],
        weapons = {},
        command = "drug",
        max = 2,
        salary = 60,
        admin = 1,
        vote = false,
        hasLicense = false
})

 
TEAM_EGUARD = DarkRP.createJob("Elite Guard", {
        color = Color (205, 133, 63, 255),
        model = "models/player/zsecurity/zsecurity.mdl",
        description = [[More armed, you are back to defend the innocent.]],
        weapons = {"m9k_remington870", "m9k_colt1911", "m9k_hk416"},
        command = "rguard",
        max = 2,
        salary = 50,
        admin = 0,
        vote = true,
        hasLicense = false,
		customCheck = function(ply) return ply:GetNWString("usergroup") == "Donator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Donator Only!"
})
               
TEAM_SPECIAL = DarkRP.createJob("Special Forces", {
		color = Color(34, 139, 34, 255),
		model = "models/player/specnaz/slow_specnaz.mdl",
		description = [[Trained from the hardest branches of the military, you return to the US as mercenaries, working for anyone you like.]],
		weapons = {"m9k_colt1911", "m9k_m16a4_acog"},
		command = "spec",
		max = 2,
		salary = 65,
		admin = 0,
		vote = true,
		hasLicense = false,
		customCheck = function(ply) return ply:GetNWString("usergroup") == "Donator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Donator Only!"
})
 
TEAM_PROTHIEF = DarkRP.createJob("Professional Thief", {
		color = Color(153, 76, 0, 255),
		model = "models/player/vin_diesel/slow.mdl",
		description = [[With a specially crafted lockpick, you are ready to wreak havok on the innocent.]],
		weapons = {"lockpick", "pro_lockpick_update", "keypad_cracker", "m9k_hk45"},
		command = "pthief",
		max = 2,
		salary = 65,
		admin = 0,
		vote = true,
		hasLicense = false,
		customCheck = function(ply) return ply:GetNWString("usergroup") == "Donator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Donator Only!"
})
                       
TEAM_SUPER = AddExtraTeam("Super Soldier", {
		color = Color(96, 96, 96, 255),
		model = "models/player/power_armor_outcast/slow.mdl",
		description = [[Being the most feared, you help the government stop crime around the city.]],
		weapons = {"m9k_m416", "m9k_m60", "m9k_deagle", "m9k_m24", "m9k_vector"},
		command = "super",
		max = 1,
		salary = 60,
		admin = 0,
		vote = true,
		hasLicense = false,
		PlayerSpawn = function(ply) ply:SetArmor(100) end,
		customCheck = function(ply) return ply:GetNWString("usergroup") == "SuperAdmin" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is SuperAdmin Only!"
})

TEAM_MANGO = DarkRP.createJob("Biomorph Commander", {
		color = Color(211, 211, 211, 255),
		model = "models/player/tau_commander/slow_tau_commander.mdl",
		description = [[Mango's Custom Class.]],
		weapons = {"m9k_m416", "m9k_vector2", "m9k_minigun", "lockpick", "m9k_spas12", "m9k_1897winchester", "m9k_scar", "keypad_cracker", "pro_lockpick_update", "weapon_slam", "weapon_crossbow", "m9k_pkm"},
		command = "mango",
		max = 0,
		salary = 0,
		admin = 0,
		vote = false,
		hasLicense = false,
		PlayerSpawn = function(ply) ply:SetArmor(100) end,
		customCheck = function(ply) return ply:SteamID() == "STEAM_0:0:62317753" end
})

TEAM_MIMIX = AddExtraTeam("Heisenberg", {
		color = Color(96, 96, 96, 255),
		model = "models/player/power_armor_outcast/slow.mdl",
		description = [[I do what i want... when i want. Bitch.]],
		weapons = {"m9k_m416", "m9k_vector2", "m9k_minigun", "lockpick", "m9k_spas12", "m9k_1897winchester", "m9k_scar", "keypad_cracker", 
                           "pro_lockpick_update", "weapon_slam", "weapon_crossbow", "m9k_pkm"},
		command = "mimix",
		max = 1,
		salary = 0,
		admin = 0,
		vote = false,
		hasLicense = true,
		PlayerSpawn = function(ply) ply:SetArmor(100) end,
		customCheck = function(ply) return ply:SteamID() == "STEAM_0:1:55023387" end
		CustomCheckFailMsg = "This job is for Mimix Only!"
})
/*---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------*/
GAMEMODE.DefaultTeam = TEAM_CITIZEN
 
 
/*---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------*/
GAMEMODE.CivilProtection = {
    [TEAM_COP] = true,
    [TEAM_CHIEF] = true,
    [TEAM_MAYOR] = true,
    [TEAM_SWATH] = true,
    [TEAM_SWATP] = true,
    [TEAM_SWATS] = true,
    [TEAM_SUPER] = true,
    [TEAM_CAP] = true,
}
 
/*---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_HITMAN)

Just wondering if anyone could help me please!:slight_smile:

You missed a comma at the line before the customCheck value

[editline]14th July 2014[/editline]

In the mod job


TEAM_MOD = DarkRP.AddExtraTeam("Mod on Duty", {
		color = Color(255, 0, 0, 255),
		model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
		description = [[You are moderator on duty.]],
		weapons = {},
		command = "aod",
		max = 0,
		salary = 0,
		admin = 1,
		vote = false,
		PlayerSpawn = function(ply) ply:SetHealth(250) end,
		hasLicense = true,
		customCheck = function(ply) return ply:GetNWString("usergroup") == "Moderator" or ply:IsAdmin() end,
		CustomCheckFailMsg = "This job is Mod Only!"
})

Still doesn’t work :C

He meant in TEAM_ADMIN