Jobs

Hello everyone, i have been having some problems with my jobs lately. I keep restarting my server only to find more and more errors. It keeps popping up errors and i cant find them easily. Could anyone be so nice as to fix the jobs for me? Thank you!


--[[---------------------------------------------------------------------------
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:
---------------------------------------------------------------------------]]
local VIP = {
["vip"] = true,
["goldvip"] = true
}

local Staff = {
["donorstaff"] = true,
["moderator"] = true,
["admin"] = true,
["superadmin"] = true,
["headadmin"] = true
}

TEAM_SCIENTIST = DarkRP.createJob("Scientist", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/magnusson.mdl"},
    description = [[Use your intelligence to study the zombies. You want to find out their weaknesses. Make a lab and study them in there.]],
    weapons = {},
    command = "scientist",
    max = 2,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_CDC = DarkRP.createJob("CDC Scientist", {
    color = Color(20, 150, 20, 255),
    model = {"models/cod players/fsb_takeemout3.mdl"},
    description = [[You are an advanced scientist, qualified to go outside and study zombies, rather than make a lab and study them in there.]],
    weapons = {"cw_kriss_5_vector"},
    command = "cdc",
    max = 2,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_WORSHIP = DarkRP.createJob("Zombie Worshiper", {
    color = Color(20, 150, 20, 255),
    model = {"models/Humans/Group03/male_08.mdl"},
    description = [[You worship the zombies, and try to stop people from killing them. If they do not, you can tell them to back off 3 times in advert before killing them. You can KOS Zombie Slayers.]],
    weapons = {"m9k_machete"},
    command = "worship",
    max = 2,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_SLAYER = DarkRP.createJob("Zombie Slayer", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/phoenix.mdl"},
    description = [[You try to kill as many zombies you can, don't worry about protecting the people, just kill kill kill. You can KOS Zombie Worshipers.]],
    weapons = {"m9k_machete"},
    command = "slayer",
    max = 4,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_LONEWOLF = DarkRP.createJob("Lone Wolf", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/lordvipes/rerc_nighthawk/nighthawk_cvp.mdl"},
    description = [[You are a lone wolf who gets extensive weaponry. You do not base with anyone, and usually never talk to anyone. You are that shady guy in the corner of the bar.]],
    weapons = {"cw_l115"},
    command = "lonewolf",
    max = 1,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_APARTMENT = DarkRP.createJob("Apartments Owner", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/eli.mdl"},
    description = [[You choose a building to make your apartments and sell rooms for money.]],
    weapons = {},
    command = "apartments",
    max = 1,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_EXPLOSIVES = DarkRP.createJob("Explosives Dealer", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/guerilla.mdl"},
    description = [[You are the man with the power, you sell explosives, and rockets, and mines, and everyone wants to buy a little something from you.]],
    weapons = {},
    command = "explosives",
    max = 1,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_RAIDER = DarkRP.createJob("Raider", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/arctic.mdl"},
    description = [[You go out and raid peoples bases. You prefer not to kill, and you want to wait until the owners have left.]],
    weapons = {"lockpick"},
    command = "raider",
    max = 6,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_PRIVATE = DarkRP.createJob("Marine Private", {
    color = Color(20, 150, 20, 255),
    model = {"models/mw2guy/bz/bzgb01.mdl"},
    description = [[You are a Marine Private. Thank you for applying on the forums/doing a good job to get noticed by Frosty!]],
    weapons = {"cw_makarov"},
    command = "private",
    max = 4,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_CORPORAL = DarkRP.createJob("Marine Corporal", {
    color = Color(20, 150, 20, 255),
    model = {"models/codmw2/codmw2he.mdl"},
    description = [[You are a Marine Corporal. Obey commands from the higher up rank!]],
    weapons = {"cw_bizongsm", "cw_makarov"},
    command = "corporal",
    max = 3,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_SERGEANT = DarkRP.createJob("Marine Sergeant", {
    color = Color(20, 150, 20, 255),
    model = {"models/codmw2/codmw2.mdl"},
    description = [[You are a Marine Sergeant. Lead your group of men into battle! Obey higher up Marine ranks!]],
    weapons = {"cw_m3super90", "cw_makarov"},
    command = "sergeant",
    max = 2,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_LIEUTENANT = DarkRP.createJob("Marine Lieutenant", {
    color = Color(20, 150, 20, 255),
    model = {"models/codmw2/codmw2h.mdl"},
    description = [[You are a Marine Lietenant. You are getting there, just keep ranking up!]],
    weapons = {"cw_aacgsm", "cw_mr96"},
    command = "lieutenant",
    max = 2,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_CAPTAIN = DarkRP.createJob("Marine Captain", {
    color = Color(20, 150, 20, 255),
    model = {"models/mw2guy/bz/bzgb01.mdl"},
    description = [[You are a Marine Captain. You are pretty far up in the ranks. Just make sure you know there are still people above you!]]],
    weapons = {"cw_ar15", "cw_fiveseven"},
    command = "captain",
    max = 2,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_MAJOR = DarkRP.createJob("Marine Major", {
    color = Color(20, 150, 20, 255),
    model = {"models/mw2guy/riot/riot_us.mdl"},
    description = [[You are a Major. Third highest rank! Command your men into battle!]],
    weapons = {"cw_kk_hk416", "cw_fiveseven"},
    command = "major",
    max = 1,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_COLONEL = DarkRP.createJob("Marine Colonel", {
    color = Color(20, 150, 20, 255),
    model = {"models/mw2guy/bz/tfbzca02.mdl"},
    description = [[You are a Marine Colonel. You are extremely powerful over the entire marine force. Make sure your men are in shape and ready to fight!]],
    weapons = {},
    command = "colonel",
    max = 1,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_LIEUTENANTGENERAL = DarkRP.createJob("Marine Lt-General", {
    color = Color(20, 150, 20, 255),
    model = {"models/codmw2/codmw2h.mdl"},
    description = [[You are a Marine Lietenant. You are getting there, just keep ranking up!]],
    weapons = {"cw_scarh", "cw_deagle"},
    command = "lieutenantgeneral",
    max = 2,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_GENERAL = DarkRP.createJob("Marine General", {
    color = Color(20, 150, 20, 255),
    model = {"models/mw2guy/diver/m_soap.mdl"},
    description = [[You are THE general of all marines. You command everyone and lead them into battle!]],
    weapons = {"cw_g4p_m16a2", "cw_deagle"},
    command = "general",
    max = 1,
    salary = 1000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_MUGGER = DarkRP.createJob("Mugger", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/guerilla.mdl"},
    description = [[You go out and mug people in the streets. You can mug for up to 3,000]],
    weapons = {m9k_knife},
    command = "mugger",
    max = 6,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_KIDNAPPER = DarkRP.createJob("Kidnapper", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/group03/male_03.mdl"},
    description = [[You kidnap anyone but the law enforcement. You try to do it in dark alley ways, but sometimes do it in public.]],
    weapons = {},
    command = "kidnapper",
    max = 2,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_MURDER = DarkRP.createJob("Murderer", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/mkx_jason.mdl"},
    description = [[You live in the sewers and make a base there, you can only advert murder every 3 minutes, and only kill in alley ways, in bases, or in the sewer. You are KOS to anyone.]],
    weapons = {"m9k_knife"},
    command = "murderer",
    max = 2,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/kleiner.mdl"},
    description = [[You are the candyman of the town, make a shop in a shady building and sell some, "candy"]],
    weapons = {},
    command = "drug",
    max = 1,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_GUARD = DarkRP.createJob("Guard", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/guard_pack/guard_09.mdl"},
    description = [[You are hired to protect a base/group of people.]],
    weapons = {},
    command = "guard",
    max = 2,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_TURRET = DarkRP.createJob("Turret Manufacturer", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/gman_high.mdl"},
    description = [[You choose a place and make a factory in it, and sell turrets to people.]],
    weapons = {},
    command = "turret",
    max = 1,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_CHECKPOINT = DarkRP.createJob("Checkpoint Officer", {
    color = Color(20, 150, 20, 255),
    model = {"models/mw2guy/bz/bzgb01.mdl"},
    description = [[You create checkpoints throughout the city, but only one at a time. If there are two people on the job, you both are to only make one checkpoint. You check for any illegals or guns (laws do not matter with the guns, do your thing)]],
    weapons = {"cw_g4p_an94", "weaponchecker"},
    command = "checkpointofficer",
    max = 2,
    salary = 500,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_ZOMBIE = DarkRP.createJob("Zombie", {
    color = Color(20, 150, 20, 255),
    model = {"models/player/slow/jamis/carnageee/slow.mdl"},
    description = [[You are a half human half zombie mix, so zombies will still attack you!]],
    weapons = {"l4dhunter_swep"},
    command = "zombie",
    max = 3,
    salary = 500,
    admin = 0,
    vote = true,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
})

TEAM_MILITARYJUGGERNAUT = DarkRP.createJob("Marine Juggernaut", {
	color = Color(0, 0, 0, 255),
	model = "models/mw2guy/riot/juggernaut.mdl",
	description = [[You are a super giant military person... nuff said.]],
	weapons = {"cw_pkm"},
	command = "militaryjuggernaut",
	max = 1,
	salary = 2000,
	admin = 0,
	vote = true,
	hasLicense = true,
	category = "Citizens",
	customCheck = function(ply) return ply:GetNWString("usergroup") == "goldvip" or ply:IsAdmin() end
})

TEAM_SNIPER = DarkRP.createJob("Marine Sniper", {
	color = Color(0, 0, 0, 255),
	model = "models/codmw2/t_codmw2.mdl",
	description = [[You are a Marine Sniper, stay back and pick off the enemies.]],
	weapons = {"cw_l115", "cw_kriss_5_vector"},
	command = "militarysniper",
	max = 1,
	salary = 2000,
	admin = 0,
	vote = true,
	hasLicense = true,
	category = "Citizens",
	customCheck = function(ply) return ply:GetNWString("usergroup") == "goldvip" or ply:IsAdmin() end
})

TEAM_MARINEMEDIC = DarkRP.createJob("Marine Medic", {
	color = Color(0, 0, 0, 255),
	model = "models/codmw2/t_codmw2.mdl",
	description = [[You are a Marine Sniper, stay back and pick off the enemies.]],
	weapons = {"cw_m3super90", "cw_g4p_xm8"},
	command = "militarymedic",
	max = 2,
	salary = 2000,
	admin = 0,
	vote = true,
	hasLicense = true,
	category = "Citizens",
	customCheck = function(ply) return VIP[ply:GetNWString("usergroup")] or ply:IsAdmin() end
})

TEAM_THIEF = DarkRP.createJob("Thief", {
    color = Color(20, 150, 20, 255),
    model = {"models/splinks/kf2/characters/player_djskully.mdl"},
    description = [[You can Raid, Mug, and Kidnap. Your max mug is 5000]],
    weapons = {"lockpick"},
    command = "thief",
    max = 4,
    salary = 2000,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Citizens",
	customCheck = function(ply) return VIP[ply:GetNWString("usergroup")] or ply:IsAdmin() end
})

TEAM_SOD = DarkRP.createJob("Staff On Duty", {
	color = Color(0, 0, 0, 255),
	model = "models/player/combine_super_soldier.mdl",
	description = [[You are staff on duty.]],
	weapons = {"weapon_keypadchecker"},
	command = "jockey",
	max = 2,
	salary = 0,
	admin = 0,
	vote = false,
	hasLicense = false,
	category = "Citizens",
	customCheck = function(ply) return Staff[ply:GetNWString("usergroup")] or ply:IsAdmin() 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_MOB)

What are the errors???

They are random i do not know.
At one point it was a problem with stun_stick, i restarted, then arrest stick, restarted, then an error with {

it only pops up 1 error at a time for some reason

here are the latest ones

[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:216: ‘}’ expected (to close ‘{’ at line 213) near ‘]’

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

[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:214: ‘}’ expected (to close ‘{’ at line 211) near ‘]’

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

For the love of code, please use CODE option in the advanced edit.
Anyways, what is line 216 and 213?

213: model = {“models/mw2guy/bz/bzgb01.mdl”},

216: command = “captain”,

In your captains’ description you have 3 brackets instead of two.

Oh! Oh thank you so much, wil fix and see if worked!

[editline]13th May 2016[/editline]

Thank you so much it worked!