DarkRP Jobs Error

[LUA]
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 = {“arrest_stick”, “unarrest_stick”, “weapon_deagle2”, “stunstick”, “door_ram”, “weaponchecker” , “weapon_cuff_police”},
command = “chief”,
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
ammo = {
[“pistol”] = 60,
},
category = “Government Jobs”,
})

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 = {“arrest_stick”, “unarrest_stick”, “weapon_glock2”, “stunstick”, “door_ram”, “weaponchecker” , “weapon_cuff_police”},
command = “cp”,
max = 4,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
[“pistol”] = 60,
},
category = “Government Jobs”,
})

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 = {“lockpick” , “pickpocket”},
command = “gangster”,
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = “Raiding Jobs”,
})

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” , “pickpocket”},
command = “mobboss”,
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.34,
admin = 0,
vote = false,
hasLicense = false,
category = “Raiding Jobs”,
})

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”, “weapon_cuff_police”},
command = “Swat”,
max = 2,
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”
}
category = “Government Jobs”,
})

TEAM_PIMP = DarkRP.createJob(“Pimp”, {
color = Color(235, 172, 255, 255),
model = {“models/player/leet.mdl”},
description = [[You handle all the escorts. You can create a place for them and charge people to enter to see the escorts. You must keep your escorts in line but remember that killing them is a crime and you will be arrested.]],
weapons = {“weapon_mad_knife”},
command = “pimp”,
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civilian Jobs”,
})

TEAM_BANK = DarkRP.createJob(“Banker”, {
color = Color(30, 225, 126, 255),
model = {“models/player/Group01/male_01.mdl”},
description = [[You can manage the printers of others. However, stealing from your clients printers is not something you’ll do.]],
weapons = {},
command = “bank”,
max = 2,
salary = 300,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civilian Jobs”,
})

TEAM_HACK = DarkRP.createJob(“Hacker”, {
color = Color(116, 116, 116, 255),
model = {“models/player/Group03/male_01.mdl”},
description = [[You can raid with others and hack into peoples places with your hacking keycard.]],
weapons = {weapon_hacking_keycard},
command = “hack”,
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Raiding Jobs”,
})

TEAM_ASS = DarkRP.createJob(“Assassin”, {
color = Color(108, 108, 108, 255),
model = {“models/player/eli.mdl”},
description = [[You are well trained individual whos job is to take hits from others and carry them out.]],
weapons = {“weapon_mad_m4”},
command = “ass”,
max = 2,
salary = 150,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civilian Jobs”,
})

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_mad_deagle”},
command = “guard”,
max = 3,
salary = 85,
admin = 0,
vote = false,
hasLicense = true
category = “Government Jobs”,
})

TEAM_MERC = DarkRP.createJob(“Mercenary”, {
color = Color(0,200,50,255),
model = {“models/player/Group03/Male_03.mdl”},
description = [[People hire you to protect them!]],
weapons = {“weapon_mad_57”},
command = “merc”,
max = 3,
salary = 200,
admin = 0,
vote = false,
hasLicense = true
category = “Raiding Jobs”,
})

TEAM_MERC = DarkRP.createJob(“Escort”, {
color = Color(0,200,50,255),
model = {“models/ltc/ccz/bdress_01v2.mdl”,
“models/ltc/ccz/bdress_02v2.mdl”,
“models/ltc/ccz/bdress_03v2.mdl”,
“models/ltc/ccz/bdress_04v2.mdl”,
“models/ltc/ccz/dbdress_01v2.mdl”,
“models/ltc/ccz/dbdress_02v2.mdl”,
“models/ltc/ccz/dbdress_03v2.mdl”,
“models/ltc/ccz/dbdress_04v2.mdl”,
“models/ltc/ccz/rdress_01v2.mdl”,
“models/ltc/ccz/rdress_02v2.mdl”,
“models/ltc/ccz/rdress_03v2.mdl”,
“models/ltc/ccz/rdress_04v2.mdl”},
description = [[Create services for your clients!]],
weapons = {""},
command = “escort”,
max = 5,
salary = 100,
admin = 0,
vote = false,
hasLicense = true
category = “Civilian Jobs”,
})

TEAM_REALESTATE = DarkRP.createJob(“Real Estate Agent”, {
color = Color(255, 206, 0, 255),
model = {“models/player/p2_chell.mdl”},
description = [[Sell homes/shops to the players within the server. You may charge them a reoccuring rate that they have to pay if they cannot afford it.]],
weapons = {},
command = “estate”,
max = 2,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civilian Jobs”,
})

TEAM_THERAPIST = DarkRP.createJob(“Therapist”, {
color = Color(178, 0, 251, 255),
model = {“models/player/kleiner.mdl”},
description = [[Offer your services to help the people heal. Charge per session or charge per minute.]],
weapons = {med_kit},
command = “thera”,
max = 3,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
– CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civilian Jobs”,
})

TEAM_RADIOHOST = DarkRP.createJob(“Radio Host”, {
color = Color(20, 150, 20, 255),
model = {“models/player/hostage/hostage_04.mdl”},
description = [[Host a radio station!]],
weapons = {},
command = “radiohost”,
max = 1,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
category = “Civilian Jobs”,
})

TEAM_OUT = DarkRP.createJob(“Kidnapper”, {
color = Color(0,200,50,255),
model = {“models/player/barney.mdl”},
description = [[Kidnap people for money!]],
weapons = {“weapon_mad_usp” , “weapon_mad_knife”, “weapon_leash_rope” , “pickpocket” , “weapon_cuff_rope”},
command = “out”,
max = 3,
salary = 0,
admin = 0,
vote = false,
hasLicense = true
category = “Raiding Jobs”,
})

TEAM_AOD = DarkRP.createJob(“Staff on Duty”, {
color = Color(0, 155, 255, 255),
model = {“addons/admin/models/players/female_02_suit.mdl”},
description = [[You’re on Duty. ]],
weapons = {},
command = “”,
max = 10,
salary = 500,
admin = 1,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Custom Jobs”,
})

TEAM_MANAGER = DarkRP.createJob(“Manager”, {
color = Color(243, 113, 255, 255),
model = {“models/player/phoenix.mdl”},
description = [[You create a place for your fighters to fight. Charge people to enter/watch. You can’t raid/mug.]],
weapons = {},
command = “manage”,
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civilian Jobs”,
})

TEAM_FIGHT = DarkRP.createJob(“Fighter”, {
color = Color(153, 153, 153, 255),
model = {“models/player/Group03/female_01.mdl”},
description = [[You can fight in arenas, duel other fighters. You cannot raid/mug/steal. You MUST FIGHT.]],
weapons = {“weapon_fists”, “tfm_blunt_shovel”},
command = “fight”,
max = 5,
salary = 300,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Civilian Jobs”,
})
[/LUA]

I keep getting this error and it occurs even when i remove the newer jobs that i added.
"
[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:144: ‘}’ expected (to close ‘{’ at line 118) near ‘category’

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

"

Just reload the map.

I restarted the server and it said 1 lua error.
[LUA]
[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:144: ‘}’ expected (to close ‘{’ at line 118) near ‘category’

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

are you sure you COMPLETELY uploaded the file through ftp, and its not corrupt?

Not sure why it would be corrupt. But, I copied all the information in the jobs file and made a new one and reuploaded it after deleting the old one and i still get the same error. I’ll try deleting the categories and see if it works.
Upon deleting the categories in all the jobs i find that it no longer gives me an error and it displays on classes. However, when i do this all custom jobs created are listed in the “other” category by default…

DONT! I know the error!

[editline]31st July 2015[/editline]

Your SWAT Job, it has the “help” table, you’re missing an “,” at the end of it!

The anticipation… Lets see if that works!

[editline]31st July 2015[/editline]

So the new swat job should be…
[LUA]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”, “weapon_cuff_police”},
command = “Swat”,
max = 2,
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”,
},
category = “Government Jobs”,
})[/LUA]

[LUA]
[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:243: ‘}’ expected (to close ‘{’ at line 232) near ‘category’

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

I got another error :confused:

most of your jobs miss a “,” near:



hasLicense = true
category = "Raiding Jobs",


^^ is from mercenary, the one that makes the error

Holy! It works now :smiley: Thanks!