Script Error

Alright, so a script error has been popping up for no reason recently and I can’t find the problem. The last time this happened, I restored the backup files to get rid of it then it went away, but now it has come back when I haven’t even changed the jobs file. Here is the lua error:


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

Right before the 'TEAM_HKING', Lua expected to read an '='-sign, but it didn't.

Hints:
	- Did you simply forget the '='-sign?
	- Did you forget a comma?
	- Is this supposed to be a local variable?

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

Now, I haven’t changed anything to do with that job and it has randomly given me this error, here is my current coding for the 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_HKING = DarkRP.createJob("Hobo King", {
	color = Color(255, 0, 0, 255),
	model = "models/player/charple.mdl",
	description = [[You are King of all hobos.]],
	weapons = {"m9k_1897winchester"},
	command = "hoboking",
	max = 1,
	salary = 30,
	admin = 0,
	vote = true,
	hasLicense = false
})

TEAM_BAR = DarkRP.createJob("Bartender ", {
    color = Color(170, 233, 242, 255),
    model = "models/player/p2_chell.mdl",
    description = [[You sell beer to the good people on the street dont forget to make a bar]],
    weapons = {},
    command = "bartender",
    max = 1,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_HOTEL = DarkRP.createJob("Hotel Manager", {
	color = Color(255, 0, 0, 255),
	model = "models/player/magnusson.mdl",
	description = [[You are the owner of the best hotel in the city.]],
	weapons = {},
	command = "hotel",
	max = 1,
	salary = 55,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_HGUN = DarkRP.createJob("Heavy Gun Dealer", {
	color = Color(80, 45, 0, 255),
	model = {
	        "models/player/hostage/hostage_04.mdl",
	        "models/player/hostage/hostage_03.mdl"
			},
	description = [[The Black Market Dealer sells illegal guns.
	~ Can't use printers]],
	weapons = {},
	command = "heavy",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_CMEDIC = DarkRP.createJob("Combat 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 while in combat.]],
	weapons = {"m9k_colt1911", "med_kit"},
	command = "cmedic",
	max = 2,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false,
})

TEAM_HITMAN = DarkRP.createJob("Hitman", {
	color = Color(255, 179, 0, 255),
	model = "models/player/guerilla.mdl",
	description = [[The Hitman is a job where people pay you to kill another person that has the hit.]],
	weapons = {"m9k_coltpython"},
	command = "hitman",
	max = 2,
	salary = 50,
	admin = 0,
	vote = true,
	hasLicense = false
})

TEAM_MC1 = DarkRP.createJob("Military Class I", {
	color = Color(255, 0, 0, 255),
	model = {
	       "models/player/pmc_1/pmc__04.mdl",
	       "models/player/pmc_2/pmc__04.mdl",
	       "models/player/pmc_3/pmc__04.mdl",
	       "models/player/pmc_4/pmc__04.mdl",
		   "models/player/pmc_5/pmc__04.mdl",
		   "models/player/pmc_6/pmc__04.mdl"
		    },
	description = [[This is a donator class you can only use this if you are a VIP or others.]],
	weapons = {"m9k_m16a4_acog", "m9k_m92beretta", "arrest_stick", "unarrest_stick", "m9k_m61_frag", "m9k_sticky_grenade", "lockpick", "keypad_cracker"},
	command = "mil1",
	max = 2,
	salary = 75,
	admin = 0,
	vote = true,
	hasLicense = true,
	PlayerSpawn = function( _p ) _p:SetArmor( 100 ); end,
	customCheck = function(ply) return CLIENT 
	or ply:IsUserGroup("VIP") 
	or ply:IsUserGroup("VIP+") 
	or ply:IsUserGroup("donator_mod") 
	or ply:IsUserGroup("tmod_vip") 
	or ply:IsUserGroup("tmod_vip+") 
	or ply:IsUserGroup("Head-Admin") 
	or ply:IsUserGroup("admin_vip") 
	or ply:IsSuperAdmin() 
	end
})

TEAM_MC2 = DarkRP.createJob("Military Class II", {
	color = Color(255, 0, 0, 255),
	model = {
	        "models/player/pmc_1/pmc__06.mdl",
	        "models/player/pmc_2/pmc__06.mdl",
	        "models/player/pmc_3/pmc__06.mdl",
	        "models/player/pmc_4/pmc__06.mdl",
	        "models/player/pmc_5/pmc__06.mdl",
	        "models/player/pmc_6/pmc__06.mdl"
			},
	description = [[This is a donator class you can only use this if you are a VIP or others.]],
	weapons = {"m9k_m60", "m9k_colt1911", "arrest_stick", "unarrest_stick", "m9k_m61_frag", "m9k_sticky_grenade", "lockpick", "keypad_cracker"},
	command = "mil2",
	max = 3,
	salary = 75,
	admin = 0,
	vote = true,
	hasLicense = true,
	PlayerSpawn = function( _p ) _p:SetArmor( 100 ); end,
	customCheck = function(ply) return CLIENT 
	or ply:IsUserGroup("VIP") 
	or ply:IsUserGroup("VIP+") 
	or ply:IsUserGroup("donator_mod") 
	or ply:IsUserGroup("tmod_vip") 
	or ply:IsUserGroup("tmod_vip+") 
	or ply:IsUserGroup("Head-Admin") 
	or ply:IsUserGroup("admin_vip") 
	or ply:IsSuperAdmin()
	end
})

TEAM_MC3 = DarkRP.createJob("Military Class III", {
	color = Color(255, 0, 0, 255),
	model = {
	        "models/player/pmc_1/pmc__03.mdl",
	        "models/player/pmc_2/pmc__03.mdl",
	        "models/player/pmc_3/pmc__03.mdl",
	        "models/player/pmc_4/pmc__03.mdl",
	        "models/player/pmc_5/pmc__03.mdl",
	        "models/player/pmc_6/pmc__03.mdl"
			},
	description = [[This is a donator class you can only use this if you are a VIP or others.]],
	weapons = {"m9k_intervention", "m9k_glock", "arrest_stick", "unarrest_stick", "m9k_m61_frag", "m9k_sticky_grenade", "lockpick", "keypad_cracker"},
	command = "mil3",
	max = 2,
	salary = 75,
	admin = 0,
	vote = true,
	hasLicense = true,
	PlayerSpawn = function( _p ) _p:SetArmor( 100 ); end,
	customCheck = function(ply) return CLIENT 
	or ply:IsUserGroup("VIP") 
	or ply:IsUserGroup("VIP+") 
	or ply:IsUserGroup("donator_mod") 
	or ply:IsUserGroup("tmod_vip") 
	or ply:IsUserGroup("tmod_vip+") 
	or ply:IsUserGroup("Head-Admin") 
	or ply:IsUserGroup("admin_vip") 
	or ply:IsSuperAdmin() 
	end
})

TEAM_TERROR = DarkRP.createJob("Terrorist", {
	color = Color(255, 0, 0, 255),
	model = "models/player/ocelot.mdl",
	description = [[This is a donator class you can only use this if you are a VIP or others.]],
	weapons = {"m9k_ak47"},
	command = "terror",
	max = 1,
	salary = 75,
	admin = 0,
	vote = true,
	hasLicense = true,
	customCheck = function(ply) return CLIENT 
	or ply:IsUserGroup("VIP") 
	or ply:IsUserGroup("VIP+") 
	or ply:IsUserGroup("donator_mod") 
	or ply:IsUserGroup("tmod_vip")
	or ply:IsUserGroup("tmod_vip+") 
	or ply:IsUserGroup("Head-Admin") 
	or ply:IsUserGroup("admin_vip") 
	or ply:IsSuperAdmin() 
	end
})

TEAM_SWAT = DarkRP.createJob("SWAT", {
	color = Color(25, 25, 170, 255),
	model = "models/player/swat.mdl",
	description = [[This is the SWAT job that you may be hostile only when raids are in affect.
	~ Can't use printers
	~ Can't base]],
	weapons = {"m9k_m4a1", "m9k_usp", "arrest_stick", "unarrest_stick"},
	command = "swat",
	max = 4,
	salary = 50,
	admin = 0,
	vote = true,
	hasLicense = true
	PlayerSpawn = function( _p ) _p:SetArmor( 50 ); end
})

TEAM_SWATS = DarkRP.createJob("SWAT Sniper", {
	color = Color(25, 25, 170, 255),
	model = "models/player/riot.mdl",
	description = [[This is the SWAT Sniper job that you may be hostile only when raids are in affect.
	~ Can't use printers
	~ Can't base]],
	weapons = {"m9k_m24", "m9k_usp", "arrest_stick", "unarrest_stick"},
	command = "swatsniper",
	max = 2,
	salary = 55,
	admin = 0,
	vote = true,
	hasLicense = true,
	PlayerSpawn = function( _p ) _p:SetArmor( 50 ); end
})

TEAM_SWATC = DarkRP.createJob("SWAT Chief", {
	color = Color(0, 0, 255, 255),
	model = "models/player/gasmask.mdl",
	description = [[The SWAT Chief is the leader of all SWAT forces.
	~ Can't use printers
	~ Can't base]],
	weapons = {"m9k_m416", "m9k_usp", "arrest_stick", "unarrest_stick"},
	command = "swatchief",
	max = 1,
	salary = 50,
	admin = 0,
	vote = true,
	hasLicense = false,
	swatc = true,
	PlayerSpawn = function( _p ) _p:SetArmor( 50 ); end,
	NeedToChangeFrom = TEAM_SWAT,
	NeedToChangeFrom = TEAM_SWATS
})

TEAM_GUARD = DarkRP.createJob("Security Guard", {
	color = Color(255, 0, 0, 255),
	model = "models/player/leet.mdl",
	description = [[The Security Guard protects people and places.
	~ Guards must only use shotguns
	~ Can't use printers]],
	weapons = {"m9k_m3"},
	command = "guard",
	max = 2,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_THIEF = DarkRP.createJob("Thief", {
	color = Color(130, 130, 130, 255),
	model = "models/player/arctic.mdl",
	description = [[The thief is the scavenger of the city.
	~ Can't base in Bank or PD.]],
	weapons = {"lockpick", "keypad_cracker"},
	command = "thief",
	max = 8,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
	color = Color(65,50, 74, 255),
	model = "models/player/arctic.mdl",
	description = [[This is a Master Thief its better than the thief.]],
	weapons = {"pro_lockpick_update", "unarrest_stick", "keypad_cracker"},
	command = "masterthief",
	max = 3,
	salary = 70,
	admin = 0,
	vote = true,
	hasLicense = false,
	customCheck = function(ply) return CLIENT 
	or ply:IsUserGroup("VIP") 
	or ply:IsUserGroup("tmod_vip") 
	or ply:IsUserGroup("VIP+") 
	or ply:IsUserGroup("donator_mod") 
	or ply:IsUserGroup("tmod_vip+") 
	or ply:IsUserGroup("Head-Admin") 
	or ply:IsUserGroup("admin_vip") 
	or ply:IsSuperAdmin() 
	end
})

TEAM_SS = DarkRP.createJob("Secret Service", {
    color = Color(100, 20, 20, 255),
    model = "models/player/barney.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 = false
})

TEAM_METH = DarkRP.createJob("Meth Dealer", {
	color = Color(131, 0,143, 255),
	model = "models/player/soldier_stripped.mdl",
	description = [[Your job is to make meath and sell it.]],
	weapons = {},
	command = "methaddict",
	max = 8,
	salary = 30,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
    color = Color(51, 204, 255, 255),
    model = "models/player/eli.mdl",
    description = [[You deal drugs to those in need.
                Be careful, may get arrested if caught in the act!]],
    weapons = {},
    command = "drug",
    max = 4,
    salary = 45,
    admin = 0,
    vote = false,
   hasLicense = false
})

TEAM_HACKER = DarkRP.createJob("Hacker", {
    color = Color(0, 255, 30, 255),
    model = "models/player/hostage/hostage_01.mdl",
    description = [[Your job is to hack the ATMS to get money make sure you dont get caught by the CP! VIP Class]],
    weapons = {"weapon_arc_atmhack"},
    command = "hacker",
    max = 2,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_DJ = DarkRP.createJob("DJ", {
    color = Color(170, 233, 242, 255),
    model = {
	        "models/player/daftpunk/daft_gold.mdl",
			"models/player/daftpunk/daft_silver.mdl"
			},
    description = [[Make a DJ house and play music all night and day! VIP class]],
    weapons = {},
    command = "dj",
    max = 2,
    salary = 55,
    admin = 0,
    vote = false,
    hasLicense = false,
	customCheck = function(ply) return CLIENT 
	or ply:IsUserGroup("VIP") 
	or ply:IsUserGroup("tmod_vip") 
	or ply:IsUserGroup("tmod_vip+") 
	or ply:IsUserGroup("VIP+") 
	or ply:IsUserGroup("donator_mod") 
	or ply:IsUserGroup("Head-Admin") 
	or ply:IsUserGroup("admin_vip") 
	or ply:IsSuperAdmin() 
	end
})

TEAM_FIGHTERO = DarkRP.createJob("Fighter Owner", {
    color = Color(255, 0, 0, 255),
    model = "models/player/odessa.mdl",
    description = [[Make your own fighting arena and host fighing matches.]],
    weapons = {},
    command = "fightingowner",
    max = 1,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_FIGHTER = DarkRP.createJob("Fighter", {
    color = Color(0, 0, 0, 255),
    model = {
	"models/player/Group02/male_06.mdl",
	"models/player/Group02/male_08.mdl"
	        },
    description = [[your job is to fight in the arena for money.]],
    weapons = {},
    command = "fighter",
    max = 8,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_HOE = DarkRP.createJob("Prostitute", {
    color = Color(247, 0, 255, 255),
    model = "models/player/alyx.mdl",
    description = [[You are a fucking hoe!]],
    weapons = {},
    command = "hoe",
    max = 4,
    salary = 35,
    admin = 0,
    vote = false,
    hasLicense = false
})

TEAM_TAXI = DarkRP.createJob("Taxi Driver", {
	color = Color(212, 177,23, 255),
	model = "models/player/hostage/hostage_01.mdl",
	description = [[Your job is to drive ppl to were they want to go.]],
	weapons = {},
	command = "taxi",
	max = 3,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MOB = DarkRP.createJob("Mob Boss", {
	color = Color(0, 0, 0, 225),
	model = "models/player/gman_high.mdl",
	description = [[Your job is to be the boss of the Mobs and Mod sniper]],
	weapons = {},
	command = "mobbossnew",
	max = 1,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MOB = DarkRP.createJob("Mob Sniper", {
	color = Color(0, 0, 0, 255),
	model = "models/player/gru.mdl",
	description = [[Your job is to be the boss of the Mobs and Mod sniper]],
	weapons = {"m9k_svu"},
	command = "mobsniper",
	max = 2,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false,
	customCheck = function(ply) return CLIENT 
	or ply:IsUserGroup("VIP") 
	or ply:IsUserGroup("VIP+") 
	or ply:IsUserGroup("donator_mod") 
	or ply:IsUserGroup("tmod_vip")
	or ply:IsUserGroup("Head-Admin") 
	or ply:IsUserGroup("admin_vip") 
	or ply:IsSuperAdmin() 
	end
})

TEAM_MOD = DarkRP.createJob("Mod on Duty", {
    color = Color(247, 0, 255, 255),
    model = "models/player/combine_super_soldier.mdl",
    description = [[There is no roleplay while being this job!]],
    weapons = {},
    command = "mod",
    max = 0,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false,
	customCheck = function(ply) return CLIENT
	or ply:IsUserGroup("Trial-Mod") 
	or ply:IsUserGroup("Mod") 
	or ply:IsUserGroup("tmod_vip") 
	or ply:IsUserGroup("donator_mod")
	or ply:IsUserGroup("tmod_vip+") 
	or ply:IsSuperAdmin() 
	end
})

TEAM_ADMIN = DarkRP.createJob("Admin on Duty", {
    color = Color(5, 221, 250, 255),
    model = "models/player/combine_super_soldier.mdl",
    description = [[There is no roleplay while being this job!]],
    weapons = {},
    command = "admin",
    max = 0,
    salary = 45,
    admin = 0,
    vote = false,
    hasLicense = false,
	customCheck = function(ply) return CLIENT
	or ply:IsUserGroup("Head-Admin") 
	or ply:IsUserGroup("admin") 
	or ply:IsUserGroup("admin_vip") 
	or ply:IsSuperAdmin() 
	end
})



	
















/*---------------------------------------------------------------------------
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)
DarkRP.addHitmanTeam(TEAM_ASSASSIN)

Please wrap your tables in


 tags so we don't see the wall of china.

My bad

Errors get messed up when /* */ comments are used. Remove the comment at the top and try again.