Hello guys, So when i add my jobs i get this error
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:113: '}' expected (to close '{' at line 100) near 'TEAM_NINJA'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
And here is my jobs.lua, Also i am very new to coding and lua so im sorry if this is a obvious mistake.
[CODE]TEAM_THIEF = AddExtraTeam("Thief", Color(51, 0, 51, 255), "models/player/group01/cookies114.mdl", [[You are a Thief and you can raid and mug.]], {"pro_lockpick_update","keypad_cracker"}, "thief", 7, 50, 0, false, false, false)
TEAM_HITMAN = AddExtraTeam("Hitman", Color(102, 51, 0, 255), "models/player/agent_47.mdl", [[The public places hits on people for you to kill.]], {"m9k_scoped_taurus", "m9k_contender"}, "hitman", 2, 60, 0, true, true, false)
TEAM_DRUGDEALER = AddExtraTeam("Drug Dealer", Color(255, 51, 204, 255), "models/player/soldier_stripped.mdl", [[You sell drugs to the public, dont let the police
see you!]], {}, "drugdealer", 2, 60, 0, false, false, false)
TEAM_ADUTY = AddExtraTeam("Admin On Duty", Color(0, 153, 255, 255), "models/player/combine_super_soldier.mdl", [[Use this class if you\'re going on duty as a
admin.]], {}, "aduty", 30, 100, 1, false, true, false)
TEAM_BLACK = AddExtraTeam("Black Market Dealer", Color(204, 0, 51, 255), "models/player/eli.mdl", [[You sell black market items to the public]], {}, "bmd", 2, 60, 0, false, false, false)
TEAM_DJ = AddExtraTeam("DJ", Color(255, 51, 153, 255), "models/player/alyx.mdl", [[You are a DJ]], {"mx_radio"}, "dj", 2, 40, 0, false, false, false)
TEAM_SWAT = AddExtraTeam("S.W.A.T.", Color(25, 25, 170, 255), "models/player/csgo01.mdl", [[You are the S.W.A.T. Team, You take on situations that the regular officer cannot handle, Its shoot to kill with the S.W.A.T. Team!]], {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker"}, "swat", 10, 70, 0, false, false, false)
TEAM_BODYGUARD = DarkRP.createJob("Body Guard", {
color = Color(255, 60, 22, 255),
model = "models/player/t_leet.mdl",
description = [[You are a bodyguard, You can be hired by several different people to serve and protect them!]],
weapons = {"m9k_glock"},
command = "bodyguard",
max = 3,
salary = 80,
admin = 0,
vote = false,
TEAM_ITALIANMOBBOSS = DarkRP.createJob("Italian Mob Boss", {
color = Color(25, 25, 25, 255),
model = "models/humans/mafia/male_08.mdl",
description = [[You are a italian mob boss, You give orders to the italian mob, If they do not follow your orders you may punish them! You are also allowed to raid and mug with this class!]],
weapons = {"pro_lockpick_updated", "keypad_cracker", "unarrest_stick"},
command = "italianmobboss",
max = 1,
salary = 60,
admin = 0,
vote = false,
TEAM_ITALIANMOBSTER = DarkRP.createJob("Italian Mobster", {
color = Color(25, 25, 25, 255),
model = {"models/humans/mafia/male_02.mdl", "models/humans/mafia/male_04.md", "models/humans/mafia/male_06.mdl", "models/humans/mafia/male_07.mdl", "models/humans/mafia/male_09.mdl"},
description = [[You are the italian mob, You take orders from the italian mob boss, if you do not follow these orders you may be punished! This class can also raid and mug!]],
weapons = {},
command = "italianmobster",
max = 10,
salary = 30,
admin = 0,
vote = false,
TEAM_RUSSIANMOBBOSS = DarkRP.createJob("Russian Mob Boss", {
color = Color(255, 25, 25, 25),
model = "models/fearless/wsuit09.mdl",
description = [[You are a russian mob boss, You give orders to the russian mob, If they do not follow your orders you may punish them! You are also allowed to raid and mug with this class!]],
weapons = {"pro_lockpick_updated", "keypad_cracker", "unarrest_stick"},
command = "russianmobboss",
max = 1,
salary = 60,
admin = 0,
vote = false,
TEAM_RUSSIANMOBSTER = DarkRP.createJob("Russian Mobster", {
color = Color(255, 25, 25, 25),
model = {"models/fearless/02.mdl", "models/fearless/gsuit18.mdl"},
description = [[You are the russian mob, You take orders from the russian mob boss, if you do not follow these orders you may be punished! This class can also raid and mug!]],
weapons = {},
command = "russianmobster",
max = 10,
salary = 30,
admin = 0,
vote = false,
TEAM_BARTENDER = DarkRP.createJob("Bartender", {
color = Color(255, 60, 22, 255),
model = "models/player/hostage/hostage_01.mdl",
description = [[You are a bartender, You sell items to the public!]],
weapons = {},
command = "bartender",
max = 2,
salary = 80,
admin = 0,
vote = false,
//DONATOR //
TEAM_MERCENARY = DarkRP.createJob("Mercenary", {
color = Color(255, 0, 0, 255),
model = "models/blacklist/spy1.mdl",
description = [[You are a mercenary, You can be hired by several different people for jobs such as raiding, kidnapping, Or Even killing, This job is donator only!]],
weapons = {"m9k_deagle", "pro_lockpick_update", "keypad_cracker"},
command = "mercenary",
max = 10,
salary = 80,
admin = 0,
vote = false,
customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "Donator" end,
CustomCheckFailMsg = "This job is donator only."
TEAM_NINJA = DarkRP.createJob("Ninja", {
color = Color(255, 255, 255, 255),
model = {"models/player/slow/amberlyn/mkvsdcu/scorpion/slow.mdl", "models/player/slow/amberlyn/mkvsdcu/subzero/slow.mdl"},
description = [[You are a ninja, You can raid and mug, You have a lockpick and a keypad cracker also, This class is donator only. ]],
weapons = {"weapon_spiderman", "pro_lockpick_update", "keypad_cracker"},
command = "ninja",
max = 10,
salary = 80,
admin = 0,
vote = false,
customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "Donator" end,
CustomCheckFailMsg = "This job is donator only."
[/CODE]
Your error gives off exactly what you have to do. You're forgetting to close every single job with }) and you're putting commas on the last argument which shouldn't be there. Don't put a comma on the last specification on every job, and try to at least use the updated job format for all jobs.
Your VIP system is very wanky as well. You don't really need return CLIENT as I think that breaks it. Just leave the ply:GetNWString in there and go about your day
[QUOTE=Chimpanzee;45815934]Your error gives off exactly what you have to do. You're forgetting to close every single job with }) and you're putting commas on the last argument which shouldn't be there. Don't put a comma on the last specification on every job, and try to at least use the updated job format for all jobs.
Your VIP system is very wanky as well. You don't really need return CLIENT as I think that breaks it. Just leave the ply:GetNWString in there and go about your day[/QUOTE]
The commas at the end of the table will not cause any problems and the 'return CLIENT or' will just do so the job still shows up in the f4 menu but the player can't change to it.
[QUOTE=CodingBeast;45819079]The commas at the end of the table will not cause any problems and the 'return CLIENT or' will just do so the job still shows up in the f4 menu but the player can't change to it.[/QUOTE]
It isn't necessarily needed I thought, considering I think I remember seeing a setting in the config file that does this on it's own.
The commas I know, but it seems kind of unfinished to me whenever I see that
Sorry, you need to Log In to post a reply to this thread.