Darkrp Glua Errors...

Hello all! I am experiencing a job error and I am unable to use my custom jobs… here’s my code!

–[[---------------------------------------------------------------------------
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_PONY = DarkRP.createJob(“Pony”, {
color = Color(255, 0, 191, 255),
model = {“models/applejack_player.mdl”, “models/bonbon_player.mdl”, “models/celestia_player.mdl”, “models/colgate_player.mdl”, “models/daringdoo_player.mdl”, “models/derpyhooves_player.mdl”, “models/fluttershy_player.mdl”, “models/luna_player.mdl”, “models/lyra_player.mdl”, “models/octavia_player.mdl”, “models/pinkiepie_player.mdl”, “models/princesstwilight_player.mdl”, “models/rainbowdash_player.mdl”, “models/raindrops_player.mdl”, “models/rarity_player.mdl”, “models/roseluck_player.mdl”, “models/spitfire_player.mdl”, “models/trixie_player.mdl”, “models/twilightsparkle_player.mdl”, “models/vinyl_player.mdl”, “models/player_chibiterasu.mdl”},
description = [[Pony!!]],
weapons = {“sfw_eblade”, “flight_swep”, “weapon_arc_atmcard”, “orbital_friendship_beam”},
command = “pony”,
max = 10,
salary = 175,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Citizens”,
})

TEAM_BREACHER = DarkRP.createJob(“Special Forces Breacher”, {
color = Color(255, 0, 0, 255),
model = {“models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_06.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_01.mdl”, “models/mw2/skin_03/mw2_soldier_05.mdl”, “models/mw2/skin_04/mw2_soldier_05.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_09/mw2_soldier_05.mdl”, “models/mw2/skin_12/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_04/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_09/mw2_soldier_04.mdl”, “models/mw2/skin_12/mw2_soldier_04.mdl”},
description = [[Breach bases boi]],
weapons = {“swep_smokenade”, “ptp_weapon_smoke”, “taser”, “m9k_barret_m82”, “m9k_striker12”, “med_kit”, “door_ram”, “arrest_stick”, “unarrest_stick”, “stunstick”},
command = “Breacher”,
max = 5,
salary = 750,
admin = 1,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civil Protection”,
PlayerLoadout = function(ply) ply:SetHealth(250) ply:SetArmor(400) ply:GiveAmmo(10, “taser_ammo”, 300, “m9k_ammo_sniper_rounds”, 300, “item_ammo_ar2_large”, 20, “Grenades”) end,
})

TEAM_JUGGERNAUT = DarkRP.createJob(“S.W.A.T Juggernaut”, {
color = Color(255, 0, 0, 255),
model = {“models/mw2/skin_04/mw2_soldier_04.mdl”},
description = [[You are a juggernaut. ]],
weapons = {“m9k_famas”, “m9k_minigun”, “taser”},
command = “Juggernaut”,
max = 5,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = true,
mayor = false,
hobo = false,
cook = false,
category = “Civil Protection”,
PlayerLoadout = function(ply) ply:SetHealth(200) ply:SetArmor(250) ply:GiveAmmo(10, “taser_ammo”, 300, “m9k_ammo_sniper_rounds”, 300, “item_ammo_ar2_large”, 20, “Grenades”) end,

})

TEAM_SNIPER = DarkRP.createJob(“Special Forces Sniper”, {
color = Color(255, 0, 0, 255),
model = {“models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_06.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_01.mdl”, “models/mw2/skin_03/mw2_soldier_05.mdl”, “models/mw2/skin_04/mw2_soldier_05.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_09/mw2_soldier_05.mdl”, “models/mw2/skin_12/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_04/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_09/mw2_soldier_04.mdl”, “models/mw2/skin_12/mw2_soldier_04.mdl”},
description = [[Noscope boiii]],
weapons = {“swep_smokenade”, “ptp_weapon_smoke”, “taser”, “m9k_barret_m82”, “m9k_famas”, “med_kit”, “door_ram”, “arrest_stick”, “unarrest_stick”, “stunstick”},
command = “Sniper”,
max = 5,
salary = 750,
admin = 1,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civil Protection”,
PlayerLoadout = function(ply) ply:SetHealth(175) ply:SetArmor(270) ply:GiveAmmo(10, “taser_ammo”, 300, “m9k_ammo_sniper_rounds”, 300, “item_ammo_ar2_large”, 20, “Grenades”) end,
})

TEAM_ADMIN = DarkRP.createJob(“Admin on Duty”, {
color = Color(255, 0, 0, 255),
model = {“models/player/combine_super_soldier.mdl”},
description = [[Admin on Duty]],
weapons = {“weapon_ak472”},
command = “Admin”,
max = 5,
salary = 0,
admin = 1,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Staff”,
})

TEAM_OPERATIVE = DarkRP.createJob(“Special Forces Operative”, {
color = Color(0, 0, 0, 255),
model = {“models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_06.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_01.mdl”, “models/mw2/skin_03/mw2_soldier_05.mdl”, “models/mw2/skin_04/mw2_soldier_05.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_09/mw2_soldier_05.mdl”, “models/mw2/skin_12/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_04/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_09/mw2_soldier_04.mdl”, “models/mw2/skin_12/mw2_soldier_04.mdl”},
description = [[ShadowsGaming Special Forces Operative.]],
weapons = {“swep_smokenade”, “ptp_weapon_smoke”, “taser”, “m9k_famas”, “med_kit”, “door_ram”, “arrest_stick”, “unarrest_stick”, “stunstick”},
command = “operative”,
max = 5,
salary = 175,
admin = 1
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civil Protection”,
PlayerLoadout = function(ply) ply:SetHealth(150) ply:SetArmor(200) ply:GiveAmmo(10, “taser_ammo”, 300, “m9k_ammo_sniper_rounds”, 300, “item_ammo_ar2_large”, 20, “Grenades”) end,

})

TEAM_HUNTER = DarkRP.createJob(“Huntsman”, {
color = Color(0, 125, 0, 255),
model = {“models/overwatch/characters/hanzo_default.mdl”},
description = [[You’re a bowman… You shoot arrows at peepz]],
weapons = {“sfw_jotunn”, “ptp_weapon_flash”, “m9k_machete”, “m9k_tec9”, “weapon_vape”},
command = “hunter”,
max = 5,
salary = 130,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civil Protection”,
PlayerLoadout = function(ply) ply:SetHealth(125) ply:SetArmor(75) end,

})

TEAM_SWAT = DarkRP.createJob(“SWAT”, {
color = Color(0, 125, 0, 255),
model = {“models/player/swat.mdl”},
description = [[Special Weapons and Tactics Team… You’re the super police basically.]],
weapons = {“m9k_g36”, “m9k_hk45”, “door_ram”, “weaponchecker”},
command = “Swat”,
max = 5,
salary = 75,
admin = 0,
vote = true
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civil Protection”,
PlayerLoadout = function(ply) ply:SetHealth(100) ply:SetArmor(75) end,

})

TEAM_COMMANDER = DarkRP.createJob(“Special Forces Commander”, {
color = Color(255, 75, 0, 150),
model = {“models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_06.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_01.mdl”, “models/mw2/skin_03/mw2_soldier_05.mdl”, “models/mw2/skin_04/mw2_soldier_05.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_09/mw2_soldier_05.mdl”, “models/mw2/skin_12/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_04/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_09/mw2_soldier_04.mdl”, “models/mw2/skin_12/mw2_soldier_04.mdl”},
description = [[You command the retarded spoons and tell em what to do.]],
weapons = {“swep_smokenade”, “ptp_weapon_smoke”, “taser”, “m9k_barret_m82”, “m9k_famas”, “med_kit”, “door_ram”, “arrest_stick”, “unarrest_stick”, “stunstick”, “m9k_spas12”, “m9k_striker12”, “m9k_psg1”, “m9k_dragunov”},
command = “Commander”,
max = 5,
salary = 1250,
admin = 2
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civil Protection”,
PlayerLoadout = function(ply) ply:SetHealth(295) ply:SetArmor(450) ply:GiveAmmo(10, “taser_ammo”, 300, “m9k_ammo_sniper_rounds”, 300, “item_ammo_ar2_large”, 20, “Grenades”) 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,
[TEAM_HUNTER] = true,
[TEAM_OPERATIVE] = true,
[TEAM_COMMANDER] = true,
[TEAM_SNIPER] = true,
[TEAM_JUGGERNAUT] = true,
[TEAM_BREACHER] = true,
[TEAM_SWAT true,
}

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

The error is it seems to think there is a missing } or an unexpected “vote” but I can’t see why this is unexpected…

Use lua tags.

[noparse][lua]Like this[/lua][/noparse]

[editline]14th December 2016[/editline]

Also you missed a comma

[lua]
TEAM_OPERATIVE = DarkRP.createJob(“Special Forces Operative”, {
color = Color(0, 0, 0, 255),
model = {“models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_06.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_01.mdl”, “models/mw2/skin_03/mw2_soldier_05.mdl”, “models/mw2/skin_04/mw2_soldier_05.mdl”, “models/mw2/skin_05/mw2_soldier_05.mdl”, “models/mw2/skin_09/mw2_soldier_05.mdl”, “models/mw2/skin_12/mw2_soldier_05.mdl”, “models/mw2/skin_03/mw2_soldier_04.mdl”, “models/mw2/skin_04/mw2_soldier_04.mdl”, “models/mw2/skin_05/mw2_soldier_04.mdl”, “models/mw2/skin_09/mw2_soldier_04.mdl”, “models/mw2/skin_12/mw2_soldier_04.mdl”},
description = [[ShadowsGaming Special Forces Operative.]],
weapons = {“swep_smokenade”, “ptp_weapon_smoke”, “taser”, “m9k_famas”, “med_kit”, “door_ram”, “arrest_stick”, “unarrest_stick”, “stunstick”},
command = “operative”,
max = 5,
salary = 175,
admin = 1, – Missed the comma here
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civil Protection”,
PlayerLoadout = function(ply) ply:SetHealth(150) ply:SetArmor(200) ply:GiveAmmo(10, “taser_ammo”, 300, “m9k_ammo_sniper_rounds”, 300, “item_ammo_ar2_large”, 20, “Grenades”) end,

})
[/lua]

Thank you so much! Goodness… I wish lua could skip the tiny piece of code that went wrong instead of the whole doccument.

That wouldn’t be good at all, instead of not working it will just produce garbage results and it will be hard to trace where it comes from.

Also this reminds me of https://github.com/mattdiamond/fuckitjs. :v: