Jobs won't work please HELP!!!

Ok so everything has been going fine until now. All I was doing was putting in some models and making classes when all of a sudden I started getting alot of errors. I have tried to fix them for quite some time and this is where I have ended up. Here is the error i’m getting:

[ERROR] gamemodes/darkrp/gamemode/config/jobrelated.lua:75: ‘)’ expected (to close ‘(’ at line 63) near ‘description’

  1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:0

Also here is the job I was working on.

TEAM_GANG = DarkRP.createJob(“Gangster”, {
color = Color(75, 75, 75, 255),
model =
“models/player/humans/suits1/male_01.mdl”,
“models/player/humans/suits1/male_02.mdl”,
“models/player/humans/suits1/male_03.mdl”,
“models/player/humans/suits1/male_04.mdl”,
“models/player/humans/suits1/male_05.mdl”,
“models/player/humans/suits1/male_06.mdl”,
“models/player/humans/suits1/male_07.mdl”,
“models/player/humans/suits1/male_08.mdl”,
“models/player/humans/suits1/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 = {},
command = “gangster”,
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false
})

Please help i’m very desperate.

Should be model = {

Now it giving me this error:

[ERROR] gamemodes/darkrp/gamemode/config/jobrelated.lua:75: ‘}’ expected (to close ‘{’ at line 63)near ‘description’

  1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:0

model = {
models
},

You’re missing a comma at the end of your close brace.

Now there is this error:

[ERROR] gamemodes/darkrp/gamemode/config/jobrelated.lua:215: unexpected symbol near ‘}’

  1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:0

That’s from a whole other job.

gamemodes/darkrp/gamemode/config/jobrelated.lua

Use DarkRP modification addon. Don’t modify DarkRP core.

I couldn’t spot anything it looks fine to me.

Here are all the jobs:

local GAMEMODE = GAMEMODE or GM
/--------------------------------------------------------
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
--------------------------------------------------------
/
TEAM_CITIZEN = DarkRP.createJob(“Citizen”, {
color = Color(20, 150, 20, 255),
model = {
“models/player/Group01/Female_01.mdl”,
“models/player/Group01/Female_02.mdl”,
“models/player/Group01/Female_03.mdl”,
“models/player/Group01/Female_04.mdl”,
“models/player/Group01/Female_06.mdl”,
“models/player/group01/male_01.mdl”,
“models/player/Group01/Male_02.mdl”,
“models/player/Group01/male_03.mdl”,
“models/player/Group01/Male_04.mdl”,
“models/player/Group01/Male_05.mdl”,
“models/player/Group01/Male_06.mdl”,
“models/player/Group01/Male_07.mdl”,
“models/player/Group01/Male_08.mdl”,
“models/player/Group01/Male_09.mdl”
},
description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {},
command = “citizen”,
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})

TEAM_POLICE = DarkRP.createJob(“Police”, {
color = Color(25, 25, 170, 255),
model = {
“models/humans/nypd/male_02_player.mdl”,
“models/humans/nypd/male_04_player.mdl”,
“models/humans/nypd/male_05_player.mdl”,
“models/humans/nypd/male_06_player.mdl”,
“models/humans/nypd/male_07_player.mdl”,
“models/humans/nypd/male_08_player.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”},
command = “cp”,
max = 10,
salary = GAMEMODE.Config.normalsalary * 1.100,
admin = 0,
vote = true,
hasLicense = true
})

TEAM_GANG = DarkRP.createJob(“Gangster”, {
color = Color(75, 75, 75, 255),
model = {
“models/player/humans/suits1/male_01.mdl”,
“models/player/humans/suits1/male_02.mdl”,
“models/player/humans/suits1/male_03.mdl”,
“models/player/humans/suits1/male_04.mdl”,
“models/player/humans/suits1/male_05.mdl”,
“models/player/humans/suits1/male_06.mdl”,
“models/player/humans/suits1/male_07.mdl”,
“models/player/humans/suits1/male_08.mdl”,
“models/player/humans/suits1/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 = {},
command = “gangster”,
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_MOB = DarkRP.createJob(“Hitman”, {
color = Color(25, 25, 25, 255),
model = “models/player/gman_high.mdl”,
description = [[You kill people for cash. Be careful with your shots. Be sneaky. Be efficient. And most importantly, be deadly…]],
weapons = {“lockpick”, “weapon_p2282”},
command = “hitman”,
max = 2,
salary = GAMEMODE.Config.normalsalary * 1.34,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_GUN = DarkRP.createJob(“Gun Dealer”, {
color = Color(255, 140, 0, 255),
model = “models/player/monk.mdl”,
description = [[A Gun Dealer is the only person who can sell guns to other people.
Make sure you aren’t caught selling illegal firearms to the public! You might get arrested!]],
weapons = {},
command = “gundealer”,
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_MEDIC = DarkRP.createJob(“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.
Without a medic, people cannot be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]],
weapons = {“med_kit”},
command = “medic”,
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
medic = true
})

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”},
command = “chief”,
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE
})

TEAM_MAYOR = DarkRP.createJob(“Mayor”, {
color = Color(150, 20, 20, 255),
model = “models/player/breen.mdl”,
description = [[The Mayor of the city creates laws to govern the city.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area.
/unlockdown to end a lockdown]],
weapons = {},
command = “mayor”,
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true
})

TEAM_HOBO = DarkRP.createJob(“Hobo”, {
color = Color(80, 45, 0, 255),
model = “models/player/corpse1.mdl”,
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or outside someone else’s door]],
weapons = {“weapon_bugbait”},
command = “hobo”,
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true
})

– Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_GANG or -1
TEAM_MOB = TEAM_MOB or -1
TEAM_GUN = TEAM_GUN or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1

TEAM_CARDEALER = AddExtraTeam(“Car Dealer”, Color(70, 70, 70, 255), “models/player/barney.mdl”, [[You sell cars to the public.]], {}, “cardealer”, 2, 80, 0, false, false, false)

TEAM_RACE = AddExtraTeam(“Street Racer”, Color(0, 0, 255, 255), “models/player/group01/Male_06.mdl”, [[You race other Street Racers for cash.]], {}, “race”, 6, 50, 0, false, false, false)

TEAM_SWAT = AddExtraTeam(“S.W.A.T”, Color(0,204,255,255), “models/player/combine_super_soldier.mdl”, [[S.W.A.T is some who come in, when the police is having trouble.]], {“weapon_real_cs_p228”, “weapon_real_cs_mac10”, “item_ammo_pistol”}, “swat”, 2, 70, 0, false, true, TEAM_POLICE)

TEAM_GUARD = AddExtraTeam(“Guard”, Color(0,255,0,255), “models/odessa.mdl”, [[Guards get hired to protect other people.]],
{“m9k_m92beretta”}, “guard”, 2, 45, 0, false, true)

TEAM_BANKER = AddExtraTeam(“Banker”, Color(102,0,102,255), “models/Kleiner.mdl”, [[You hold on to peoples things for them and work at the bank.]], {}, “banker”, 1, 50, 0, false, false)

All of the jobs you added are missing the { and } around the model. Also, don’t put custom jobs in the gamemode folder. Put it in your addons/darkrpmodification-master.

The code you gave me only has 210 lines; the error is on line 215.

Also, you really should be using the DarkRP modification addon instead of modifying core files.

[editline]2nd March 2014[/editline]

That doesn’t matter if it only has one model. {} signifies a table.

Thank you guys I found the first issue but now yet ANOTHER error has came upon me.

This is the error:

[ERROR] gamemodes/darkrp/gamemode/modules/fadmin/sh_fadmin_darkrp.lua:111: attempt to call field ‘command’ (a string value)

  1. fn - gamemodes/darkrp/gamemode/modules/fadmin/sh_fadmin_darkrp.lua:111
  2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

Disable the FAdmin module in the darkrp settings.

How would I go about doing that? Deleting the whole fadmin folder in modules?

It’s on the front page of the DarkRP wiki… http://wiki.darkrp.com/index.php/LUA:Remove_FAdmin

#1 darkrp server coming right up folks, everyone get in line to join

Do you really have to be a dick about this?

That’s quite an OTT solution.