DarkRP modification customjob error.

So I get this error when I start my server: error: 1 missing “{” near “admin” lua 56
And I cant see any of these jobs when I go to the server.

Here is the code from darkrpmodification/customthings/jobs

TEAM_HITMAN = AddExtraTeam(“Hitman”, {
color = Color(200, 9, 0, 255),
model = “models/nikout/dishonored/assassin1.mdl”,
description = [[You take kill contracts and fullfill them.]],
weapons = {“AI AW50”},
command = “hitman”,
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_Mafia = DarkRP.createJob(“Mafia Member”, {
color = Color(75, 75, 75, 255),
model = {
“models/player/Group03/Female_01.mdl”,
“models/player/Group03/Female_02.mdl”,
“models/player/Group03/Female_03.mdl”,
“models/player/Group03/Female_04.mdl”,
“models/player/Group03/Female_06.mdl”,
“models/player/group03/male_01.mdl”,
“models/player/Group03/Male_02.mdl”,
“models/player/Group03/male_03.mdl”,
“models/player/Group03/Male_04.mdl”,
“models/player/Group03/Male_05.mdl”,
“models/player/Group03/Male_06.mdl”,
“models/player/Group03/Male_07.mdl”,
“models/player/Group03/Male_08.mdl”,
“models/player/Group03/Male_09.mdl”},
description = [[The lowest person of crime.
Mafia Member works for Mafia Boss and follows his orders.]],
weapons = {},
command = “gangster”,
max = 8,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_SWATVIP = AddExtraTeam(“S.W.A.T. Leader”, {
color = Color(255, 140, 0, 255),
model = “models/player/swat.mdl”,
description = [[S.W.A.T. VIP]],
weapons = {“weapon”},
command = “swatvip”,
max = 4,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply)
return table.HasValue({vip", “admin”, “superadmin”, “Moderator”}, ply:GetNWString(“usergroup”))
end
}
})

And another thing, does the hitmenu come automatically to the hitman job? If not, how will I install it?



TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(200, 9, 0, 255),
model = "models/nikout/dishonored/assassin1.mdl",
description = [[You take kill contracts and fullfill them.]],
weapons = {"AI AW50"},
command = "hitman",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_MAFIA = DarkRP.createJob("Mafia Member", {
color = Color(75, 75, 75, 255),
model = {
"models/player/Group03/Female_01.mdl",
"models/player/Group03/Female_02.mdl",
"models/player/Group03/Female_03.mdl",
"models/player/Group03/Female_04.mdl",
"models/player/Group03/Female_06.mdl",
"models/player/group03/male_01.mdl",
"models/player/Group03/Male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/Male_04.mdl",
"models/player/Group03/Male_05.mdl",
"models/player/Group03/Male_06.mdl",
"models/player/Group03/Male_07.mdl",
"models/player/Group03/Male_08.mdl",
"models/player/Group03/Male_09.mdl"},
description = [[The lowest person of crime.
Mafia Member works for Mafia Boss and follows his orders.]],
weapons = {},
command = "mafia",
max = 8,
salary = 45, -- Change this number to whatever you want it to be. It looks neater this way.
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_SWATVIP = DarkRP.createJob("S.W.A.T. Leader", {
color = Color(255, 140, 0, 255),
model = "models/player/swat.mdl",
description = [[S.W.A.T. VIP]],
weapons = {},
command = "swatvip",
max = 4,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetUserGroup() == "vip" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "Moderator" end,
CustomCheckFailMsg = "Donate to become this class!" -- Deprecated, but whatever.
}


for the hitman thing, you’re going to find this



DarkRP.addHitmanTeam(TEAM_MOB)


And change it to this



DarkRP.addHitmanTeam(TEAM_HITMAN)


Cheers ! And thanks for upgraging the Swat Vip code too, its much better now ! But I got new question, how could I add these Ranks to the server and make it so they cant harm high rankers? Owner (superadmin) ----> superadmin (just namely, just an admin with more command than normally —> admin ----> moderator. In that order, I tried to do it. The admin cant ban superadmin but superadmin can ban owner.

Knowing DarkRP, Fadmin is also conflicting with your permissions

Okay, well… Another question! How could I set M9K weapons as default in the game so the gundealers and all sell those guns? E: I restarted the server and the jobs wont work anymore
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:76: ‘)’ expected (to close ‘(’ at line 57) near ‘GAMEMODE’

  1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0

/*---------------------------------------------------------------------------
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:

For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields

Add jobs under the following line:
---------------------------------------------------------------------------*/

TEAM_HITMAN = DarkRP.createJob(“Hitman”, {
color = Color(200, 9, 0, 255),
model = “models/nikout/dishonored/assassin1.mdl”,
description = [[You take kill contracts and fulfill them.]],
weapons = {“AI AW50”},
command = “hitman”,
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_MAFIA = DarkRP.createJob(“Mafia Member”, {
color = Color(75, 75, 75, 255),
model = {
“models/player/Group03/Female_01.mdl”,
“models/player/Group03/Female_02.mdl”,
“models/player/Group03/Female_03.mdl”,
“models/player/Group03/Female_04.mdl”,
“models/player/Group03/Female_06.mdl”,
“models/player/group03/male_01.mdl”,
“models/player/Group03/Male_02.mdl”,
“models/player/Group03/male_03.mdl”,
“models/player/Group03/Male_04.mdl”,
“models/player/Group03/Male_05.mdl”,
“models/player/Group03/Male_06.mdl”,
“models/player/Group03/Male_07.mdl”,
“models/player/Group03/Male_08.mdl”,
“models/player/Group03/Male_09.mdl”},
description = [[The lowest person of crime.
Mafia Member works for Mafia Boss and follows his orders.]],
weapons = {},
command = “mafia”,
max = 8,
salary = 45, – Change this number to whatever you want it to be. It looks neater this way.
admin = 0,
vote = false,
hasLicense = false,
})

TEAM_SWATVIP = DarkRP.createJob(“S.W.A.T. Leader”, {
color = Color(255, 140, 0, 255),
model = “models/player/swat.mdl”,
description = [[S.W.A.T. VIP]],
weapons = {},
command = “swatvip”,
max = 4,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetUserGroup() == “vip” or ply:GetUserGroup() == “admin” or ply:GetUserGroup() == “superadmin” or ply:GetUserGroup() == “Moderator” end,
CustomCheckFailMsg = “Donate to become this class!” – Deprecated, but whatever.
}

Use


 tags, you forgot to put ) in the end of your file, after }, just like the error tells you.