changing jobs.lua breaks server

Whenever i try to add custom jobs to my jobs.lua the entire server breaks (i get a lua error in console about line 218 involving “=” and it not processing something around it and you spawn in a random spot with a super low poly grey/black model with no animations.

the jobs.lua file:

BEFORE EDITING (working apart from mayor (and cops havent checked yet) not being able to open doors with the preset group “mayor and cops only”)



--[[---------------------------------------------------------------------------
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_CITIZEN = DarkRP.createJob("Citizen", {
    color = Color(20, 150, 20, 255),
    model = {
        "models/player/Group01/Female_01.mdl",
        "models/player/Group01/Female_02.mdl",
        "models/player/Group01/Female_03.mdl",
        "models/player/Group01/Female_04.mdl",
        "models/player/Group01/Female_06.mdl",
        "models/player/group01/male_01.mdl",
        "models/player/Group01/Male_02.mdl",
        "models/player/Group01/male_03.mdl",
        "models/player/Group01/Male_04.mdl",
        "models/player/Group01/Male_05.mdl",
        "models/player/Group01/Male_06.mdl",
        "models/player/Group01/Male_07.mdl",
        "models/player/Group01/Male_08.mdl",
        "models/player/Group01/Male_09.mdl"
    },
    description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon"},
    command = "citizen",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false
})

TEAM_POLICE = DarkRP.createJob("Civil Protection", {
    color = Color(25, 25, 170, 255),
    model = {"models/player/police.mdl", "models/player/police_fem.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 = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon", "arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
    command = "cp",
    max = 4,
    salary = GAMEMODE.Config.normalsalary * 1.45,
    admin = 0,
    vote = true,
    hasLicense = true,
    ammo = {
        ["pistol"] = 60,
    }
})

TEAM_GANG = DarkRP.createJob("Gangster", {
    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.
        A gangster generally works for the Mobboss who runs the crime family.
        The Mob boss sets your agenda and you follow it or you might be punished.]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon"},
    command = "gangster",
    max = 3,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_MOB = DarkRP.createJob("Mob boss", {
    color = Color(25, 25, 25, 255),
    model = "models/player/gman_high.mdl",
    description = [[The Mob boss is the boss of the criminals in the city.
        With his power he coordinates the gangsters and forms an efficient crime organization.
        He has the ability to break into houses by using a lockpick.
        The Mob boss posesses the ability to unarrest you.]],
    weapons = {"lockpick", "unarrest_stick"},
    command = "mobboss",
    max = 1,
    salary = GAMEMODE.Config.normalsalary * 1.34,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_GUN = DarkRP.createJob("Gun Dealer", {
    color = Color(255, 140, 0, 255),
    model = "models/player/monk.mdl",
    description = [[A Gun Dealer is the only person who can sell guns to other people.
        Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon"},
    command = "gundealer",
    max = 2,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_MEDIC = DarkRP.createJob("Medic", {
    color = Color(47, 79, 79, 255),
    model = "models/player/kleiner.mdl",
    description = [[With your medical knowledge you work to restore players to full health.
        Without a medic, people cannot be healed.
        Left click with the Medical Kit to heal other players.
        Right click with the Medical Kit to heal yourself.]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon", "med_kit"},
    command = "medic",
    max = 3,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    medic = true
})

TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
    color = Color(20, 20, 255, 255),
    model = "models/player/combine_soldier_prisonguard.mdl",
    description = [[The Chief is the leader of the Civil Protection unit.
        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 = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon", "arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
    command = "chief",
    max = 1,
    salary = GAMEMODE.Config.normalsalary * 1.67,
    admin = 0,
    vote = false,
    hasLicense = true,
    chief = true,
    NeedToChangeFrom = TEAM_POLICE,
    ammo = {
        ["pistol"] = 60,
    }
})

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 = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon"},
    command = "mayor",
    max = 1,
    salary = GAMEMODE.Config.normalsalary * 1.89,
    admin = 0,
    vote = true,
    hasLicense = false,
    mayor = true
})

TEAM_HOBO = DarkRP.createJob("Hobo", {
    color = Color(80, 45, 0, 255),
    model = "models/player/corpse1.mdl",
    description = [[The lowest member of society. Everybody laughs at you.
        You have no home.
        Beg for your food and money
        Sing for everyone who passes to get money
        Make your own wooden home somewhere in a corner or outside someone else's door]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon", "weapon_bugbait"},
    command = "hobo",
    max = 5,
    salary = 0,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    hobo = true
})

--[[---------------------------------------------------------------------------
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_POLICE] = true,
	[TEAM_CHIEF] = true,
	[TEAM_MAYOR] = true,
}

--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_HITMAN)


AFTER:(I moved all the changes I made into multi-line brackets so I could remove bracket from a job 1 by 1 and find problem but i still got error even with the comment)



--[[---------------------------------------------------------------------------
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_CITIZEN = DarkRP.createJob("Citizen", {
    color = Color(20, 150, 20, 255),
    model = {
        "models/player/Group01/Female_01.mdl",
        "models/player/Group01/Female_02.mdl",
        "models/player/Group01/Female_03.mdl",
        "models/player/Group01/Female_04.mdl",
        "models/player/Group01/Female_06.mdl",
        "models/player/group01/male_01.mdl",
        "models/player/Group01/Male_02.mdl",
        "models/player/Group01/male_03.mdl",
        "models/player/Group01/Male_04.mdl",
        "models/player/Group01/Male_05.mdl",
        "models/player/Group01/Male_06.mdl",
        "models/player/Group01/Male_07.mdl",
        "models/player/Group01/Male_08.mdl",
        "models/player/Group01/Male_09.mdl"
    },
    description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon"},
    command = "citizen",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false
})

TEAM_POLICE = DarkRP.createJob("Civil Protection", {
    color = Color(25, 25, 170, 255),
    model = {"models/player/police.mdl", "models/player/police_fem.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 = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon", "arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
    command = "cp",
    max = 4,
    salary = GAMEMODE.Config.normalsalary * 1.45,
    admin = 0,
    vote = true,
    hasLicense = true,
    ammo = {
        ["pistol"] = 60,
    }
})

TEAM_GANG = DarkRP.createJob("Gangster", {
    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.
        A gangster generally works for the Mobboss who runs the crime family.
        The Mob boss sets your agenda and you follow it or you might be punished.]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon"},
    command = "gangster",
    max = 3,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_MOB = DarkRP.createJob("Mob boss", {
    color = Color(25, 25, 25, 255),
    model = "models/player/gman_high.mdl",
    description = [[The Mob boss is the boss of the criminals in the city.
        With his power he coordinates the gangsters and forms an efficient crime organization.
        He has the ability to break into houses by using a lockpick.
        The Mob boss posesses the ability to unarrest you.]],
    weapons = {"lockpick", "unarrest_stick"},
    command = "mobboss",
    max = 1,
    salary = GAMEMODE.Config.normalsalary * 1.34,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_GUN = DarkRP.createJob("Gun Dealer", {
    color = Color(255, 140, 0, 255),
    model = "models/player/monk.mdl",
    description = [[A Gun Dealer is the only person who can sell guns to other people.
        Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon"},
    command = "gundealer",
    max = 2,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_MEDIC = DarkRP.createJob("Medic", {
    color = Color(47, 79, 79, 255),
    model = "models/player/kleiner.mdl",
    description = [[With your medical knowledge you work to restore players to full health.
        Without a medic, people cannot be healed.
        Left click with the Medical Kit to heal other players.
        Right click with the Medical Kit to heal yourself.]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon", "med_kit"},
    command = "medic",
    max = 3,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    medic = true
})

TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
    color = Color(20, 20, 255, 255),
    model = "models/player/combine_soldier_prisonguard.mdl",
    description = [[The Chief is the leader of the Civil Protection unit.
        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 = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon", "arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
    command = "chief",
    max = 1,
    salary = GAMEMODE.Config.normalsalary * 1.67,
    admin = 0,
    vote = false,
    hasLicense = true,
    chief = true,
    NeedToChangeFrom = TEAM_POLICE,
    ammo = {
        ["pistol"] = 60,
    }
})

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 = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon"},
    command = "mayor",
    max = 1,
    salary = GAMEMODE.Config.normalsalary * 1.89,
    admin = 0,
    vote = true,
    hasLicense = false,
    mayor = true
})

TEAM_HOBO = DarkRP.createJob("Hobo", {
    color = Color(80, 45, 0, 255),
    model = "models/player/corpse1.mdl",
    description = [[The lowest member of society. Everybody laughs at you.
        You have no home.
        Beg for your food and money
        Sing for everyone who passes to get money
        Make your own wooden home somewhere in a corner or outside someone else's door]],
    weapons = {"weapon_physgun", "gmod_tool", "weapon_fists", "weapon_physcannon", "weapon_bugbait"},
    command = "hobo",
    max = 5,
    salary = 0,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    hobo = true
})

--[[

TEAM_MODERATOR = DarkRP.createJob("Moderator On Duty", {
    color = Color(150, 20, 20, 255),
    model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
    description = [[]],
    weapons = {},
    command = "aod",
    max = 0,
    salary = 100,
    admin = 0,
    vote = false,
    hasLicense = true,
	customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" end,
	category = "Admins"
})

TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
    color = Color(150, 20, 20, 255),
    model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
    description = [[]],
    weapons = {},
    command = "aod",
    max = 0,
    salary = 100,
    admin = 0,
    vote = false,
    hasLicense = true,
	customCheck = function(ply) return ply:GetUserGroup() == "admin" or plyGetUserGroup() "superadmin" end,
	category = "Admins"
})

TEAM_SADMIN = DarkRP.createJob("Superadmin on duty", {
    color = Color(150, 20, 20, 255),
    model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
    description = [[]],
    weapons = {},
    command = "saod",
    max = 0,
    salary = 100,
    admin = 0,
    vote = false,
    hasLicense = true,
    customCheck = function(ply) return ply:GetUserGroup() == "superadmin" end,
	category = "Admins"
})

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"}, -- You may wanna find a pickpocket swep and add it here.
    command = "thief",
    max = 2,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = 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 = 1,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = false,
    category = "Citizens"
})

TEAM_SS = DarkRP.createJob("Secret Service", {
    color = Color(100, 20, 20, 255),
    model = "models/player/macdguy.mdl",
    description = [[You are responsible for protecting the mayor.
    Take care of the old fellow, he is vanuarable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
    weapons = {"weapon_deagle2", "stunstick", "weaponchecker"},
    command = "ss",
    max = 2,
    salary = 65,
    admin = 0,
    vote = true,
    hasLicense = true,
        ammo = {
        ["pistol"] = 60,
    }, 
    customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "donator" or ply:GetUserGroup() == "vip" end,
	category = "Donator"
})

TEAM_SWAT = DarkRP.createJob("Swat", {
    color = Color(25, 25, 170, 255),
    model = {"models/player/swat.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", "handcuffs"},
    command = "Swat",
    max = 4,
    salary = 85,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
        "Please don't abuse your job",
        "When you arrest someone they are auto transported to jail.",
        "They are auto let out of jail after some time",
        "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
        "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
        "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
        "Type /jailpos to set the jail position"
    },
    customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "donator" or ply:GetUserGroup() == "vip" end,
	category = "Donator"
})

TEAM_MD = DarkRP.createJob("Mayors Daughter", {
    color = Color(255,100,100,255),
    model = "models/player/alyx.mdl",
    description = [[You are the mayors daughter, walk around with your dad
                just chill around. But be careful, you never know when somebody
                is waiting to kidnap you!]],
    weapons = {},
    command = "mayorsdaughter",
    max = 1,
    salary = 80,
    admin = 0,
    vote = false,
    hasLicense = false
	customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "donator" or ply:GetUserGroup() == "vip" end,
	category = "Donator"
})

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 = 1,
    salary = 85,
    admin = 0,
    vote = false,
    hasLicense = true,
    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 = 2,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = false,
    category = "Citizens"
})

TEAM_SWATL = DarkRP.createJob("Swat Leader", {
    color = Color(20, 20, 255, 255),
    model = {"models/codmw2/codmw2hexe.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", "handcuffs"},
    command = "Swat",
    max = 1,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
        "Please don't abuse your job",
        "When you arrest someone they are auto transported to jail.",
        "They are auto let out of jail after some time",
        "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
        "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
        "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
        "Type /jailpos to set the jail position"
    },
    customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "vip" end,
	category = "Donator"
})

TEAM_SWATS = DarkRP.createJob("Swat Sniper", {
    color = Color(20, 20, 255, 255),
    model = "models/mw2guy/diver/diver_03.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", "handcuffs"},
    command = "Swat",
    max = 1,
    salary = 120,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
        "Please don't abuse your job",
        "When you arrest someone they are auto transported to jail.",
        "They are auto let out of jail after some time",
        "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
        "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
        "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
    },
    customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "vip" end,
	category = "Donator"
})

TEAM_TERROR = DarkRP.createJob("Terrorist", {
    color = Color(255, 140, 0, 255),
    model = "models/codplayers/opfor4.mdl",
    description = [[]],
    weapons = {"m9k_ak47"}, -- You may wanna find a pickpocket swep and add it here.
    command = "terrorist",
    max = 3,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = false,
	customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "donator" or ply:GetUserGroup() == "vip" end,
	category = "Donator"
})

TEAM_TERRORL = DarkRP.createJob("Terrorist Leader", {
    color = Color(255, 140, 0, 255),
    model = "models/codplayers/opfor4.mdl",
    description = [[]],
    weapons = {"m9k_ak47", "m9k_suicide_bomb"}
    command = "terroristl",
    max = 1,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = false,
	customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "vip" end,
	category = "Donator"
})

TEAM_MTHIEF = DarkRP.createJob("Master 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", "m9k_tec9"}, -- You may wanna find a pickpocket swep and add it here.
    command = "mthief",
    max = 4,
    salary = 110,
    admin = 0,
    vote = false,
    hasLicense = false,
	customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "t-mod" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "donator" or ply:GetUserGroup() == "vip" end,
	category = "Donator"
})

--]]

--[[---------------------------------------------------------------------------
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_POLICE] = true,
	[TEAM_CHIEF] = true,
	[TEAM_MAYOR] = true,
	--[[
	[TEAM_SWAT] = true,
	[TEAM_SWATS] = true,
	[TEAM_SWATL] = true,
	[TEAM_SS] = true,
	--]]
}

--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_HITMAN)
--[[
DarkRP.addHitmanTeam(TEAM_MTHEIF)
DarkRP.addHitmanTeam(TEAM_TERRORL)
--]]


and my categories.lua incase you want it:



--[[-----------------------------------------------------------------------
Categories
---------------------------------------------------------------------------
The categories of the default F4 menu.

Please read this page for more information:
http://wiki.darkrp.com/index.php/DarkRP:Categories

In case that page can't be reached, here's an example with explanation:

DarkRP.createCategory{
    name = "Citizens", -- The name of the category.
    categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
    startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
    color = Color(0, 107, 0, 255), -- The color of the category header.
    canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
    sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}


Add new categories under the next line!
---------------------------------------------------------------------------]]

DarkRP.createCategory{
	name = "Admin Jobs",
	categorises = "jobs",
	startExpanded = true,
	color = Color(200, 20, 20, 255),
	canSee = function(ply) return true end,
	sortOrder = 99,
}

DarkRP.createCategory{
	name = "Donator",
	categorises = "jobs",
	startExpanded = true,
	color = Color(20, 20, 255, 255),
	canSee = function(ply) return true end,
	sortOrder = 100,
}



Paste the exact error please

Line 213, you added the start of a comment that looks like it’s not supposed to be there.

Syntax highlighting shows you opened a multi-line comment right before TEAM_MODERATOR and didn’t close it…I’m not on a platform that can test this right now but the error is related to syntax. If we had the actual error (and you could tell us which line specifically is erroring) it would help.

After removing that line, you need to add a comma after “hasLicense = false” on line 349. Also line 361 needs a comma as well. (After “weapons = {“m9k_ak47”, “m9k_suicide_bomb”}”)

auto-merge ninja’ :v

getting actual error now sorry i didn’t include it

[editline]10th December 2016[/editline]



[DarkRP] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 218.
The best help I can give you is this:

Right before the '=', Lua encountered something it could not make sense of.

Hints:
        - Did you forget something here? (Perhaps a closing bracket)
        - Is it a typo?

------- End of Simplerr error -------

  1. error - [C]:-1
   2. doInclude - gamemodes/darkrp/gamemode/libraries/simplerr.lua:530
    3. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:137
     4. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:148
      5. unknown - gamemodes/darkrp/gamemode/init.lua:86


[editline]10th December 2016[/editline]

After I made the edits you suggested, this



  1. error -
[DarkRP] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 227.
The best help I can give you is this:

Corrupt team: Admin On Duty!
This job does not have a unique command.

Hints:
        - There must be some other job that has the same command.
        - Fix this by changing the 'command' of your job to something else.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
        1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 227
        2. function 'xpcall'
        3. gamemodes/darkrp/gamemode/libraries/simplerr.lua on line 477
        4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
        5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
        6. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
        7. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
        8. gamemodes/darkrp/gamemode/init.lua on line 86
------- End of Simplerr error -------


[editline]10th December 2016[/editline]

fixed that checking for errors again

[editline]10th December 2016[/editline]

just another command thing fixing it

error in case you wanted it



  1. error - [
[DarkRP] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 382.
The best help I can give you is this:

Corrupt team: Swat Leader!
This job does not have a unique command.

Hints:
        - There must be some other job that has the same command.
        - Fix this by changing the 'command' of your job to something else.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
        1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 382
        2. function 'xpcall'
        3. gamemodes/darkrp/gamemode/libraries/simplerr.lua on line 477
        4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
        5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
        6. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
        7. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
        8. gamemodes/darkrp/gamemode/init.lua on line 86
------- End of Simplerr error -------


[editline]10th December 2016[/editline]

Well I can actually spawn now the only thing is this category error



There are 3 Lua problems!
	Please check your console for more information!
[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:

The category of "Moderator On Duty" ("Admins") does not exist!

Hints:
	- Make sure the category is created with DarkRP.createCategory.
	- The category name is case sensitive!
	- Categories must be created before DarkRP finished loading.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
your jobs
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:

The category of "Admin On Duty" ("Admins") does not exist!

Hints:
	- Make sure the category is created with DarkRP.createCategory.
	- The category name is case sensitive!
	- Categories must be created before DarkRP finished loading.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
your jobs
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:

The category of "Superadmin on duty" ("Admins") does not exist!

Hints:
	- Make sure the category is created with DarkRP.createCategory.
	- The category name is case sensitive!
	- Categories must be created before DarkRP finished loading.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
your jobs
------- End of Simplerr error -------



Looks like I just made a spelling mistake checking categories.lua now

[editline]10th December 2016[/editline]

Everything seems to be fine now except my Notepadd++ is replacing characters and has a blinking underscore reminiscent of cmd instead of typing new ones and my F4 menu only shows from citizen to mod on duty