WHAT DID I DO WRONG

ok so I recently bought a darkrp server and I coded all the jobs and for some reason there are no jobs at all the f4 menu for jobs is just blank here is my code. what did I do wrong

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(“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”},
command = “cp”,
max = 4,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
[“pistol”] = 60,
})

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

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”},
command = “mobboss”,
max = 1,
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,
ammo = {
[“pistol”] = 60,
})

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
})

TEAM_THIEF = AddExtraTeam(“Thief”, Color(0, 0, 0, 255), “models/player/artic.mdl”, [[You are a thief steal peoples shit and mug they
asses]], {“weapon_fists”,“m9k_knife”,“lockpick”}, “thief”, 6, 150, 0, false, false, false)
})

TEAM_SWATNYKUH = AddExtraTeam(“S.W.A.T.”, Color(255, 255, 255, 255), “models/player/riot.mdl”, [[You are a swat assist the pd in raids or some shit
]], {“weapon_fists”,“arrest_stick”,“unarrest_stick”,“stun_stick”,“weaponchecker”,“m9k_mp5sd”,“m9k_usp”}, “swatnykuh”, 4, 150, 0, true, true, false)
})

TEAM_SWATNYKUH = AddExtraTeam(“S.W.A.T. Sniper”, Color(255, 255, 255, 255), “models/player/riot.mdl”, [[You are a swat assist the pd in raids or some shit
and you got a snoipeh]], {“weapon_fists”,“m9k_knife”,“m9k_m24”,“arrest_baton”,“unarrest_baton”,“stun_stick”,“weaponchecker”,“m9k_tec9”}, “swatnykuh”, 2, 150, 0, true, true, false)
})

TEAM_SWATNYKUH = AddExtraTeam(“S.W.A.T. Medic”, Color(255, 255, 255, 255), “models/player/riot.mdl”, [[You are a swat MEDICK assist the pd in raids or
some shit ]], {“weapon_fists”,“m9k_ithacam37”,“arrest_baton”,“unarrest_baton”,“stun_baton”,“m9k_ragingbull”,“med_kit”}, “swatnykuh”, 2, 150, 0, true, true, false)
})

TEAM_SAMA = AddExtraTeam(“Terrorst”, Color(255, 255, 255, 255), “models/player/guerilla.mdl”, [[You follow Osama’s orders (unless they’re
against the rules)]], {“weapon_fists”,“m9k_ak74”,“lockpick”}, “sama”, 3, 150, 0, true, false, false)
})

TEAM_SAMA = AddExtraTeam(“Osama”, Color(255, 255, 255, 255), “models/player/leet.mdl”, [[You control the terrorists
You can mug/raid/carjack as long as you have a
terrorist with you. you can /advert terror and
shoot all government
you can /advert jihad and blow up the government
with your c4]], {“m9k_ak47”,“unarrest_baton”,“lockpick”,“m9k_suicide_bomb”}, “sama”, 1, 100, 0, true, false, false)
})

TEAM_KYLE = AddExtraTeam(“Jakes Custom Class”, Color(255, 255, 255, 255), “models/player/combine_soldier.mdl”, [[ASS]], {“m9k_val”,“m9k_scoped_taurus”,“m9k_1887winchester”,“m9k_damascus”,“m9k_aw50”,“lockpick”,“arrest_baton”,“unarrest_baton”}, “kyle”, 1, 1000, 2, false, true, false)
})

TEAM_JAKE = AddExtraTeam(“Kyles custom class”, Color(255, 255, 255, 255), “models/player/combine_soldier.mdl”, [[Be whatever you want to be kyle :)]], {“m9k_m98b”,“m9k_ragingbull”,“m9k_remington870”,“m9k_an94”,“m9k_honeybadger”,“m9k_damascus”,“arrest_baton”,“unarrest_baton”,“lockpick”}, “jake”, 1, 1000, 2, false, true, false)
– 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


(User was banned for this post ("Wrong section, failure to use code tags and title in all caps - please revise post and put it in Developer Discussion!" - NiandraLades))

One, use



Two, post any warnings you see in the server console. If it didn't read the code correctly, then it would toss errors in the console.

[editline]22nd June 2014[/editline]

Reading though the code, you didn't even look at how every other job was done.
Give me a moment to fix at least one to give you an idea.

[editline]22nd June 2014[/editline]

Let's take the Citizen class and your class, the Theif


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
})



So we can use this as a base.


TEAM_THIEF = DarkRP.createJob(“Theif”, { --Redefine and give a name.
color = Color(20, 150, 20, 255), --Color that signifies them
model = “models/player/artic.mdl”, --The model the class can use. We can also remove the array here and just keep it as a string since that is supported.
description = [[You are a thief steal peoples shit and mug their asses]], --Change the description.
weapons = {“weapon_fists”,“m9k_knife”,“lockpick”}, --Give them the weapons.
command = “theif”, --Change the command
max = 6, --Limit how many theifs.
salary = GAMEMODE.Config.normalsalary, --Use the default salary or give a number.
admin = 0, --Not give them admin powers.
vote = false, --Should they be voted in?
hasLicense = false, --Do they default have a gun license?
candemote = false --Can they be demoted?
})




[editline]22nd June 2014[/editline]

Another thing, you can't use the same variable, as this will overwrite the first instance of it.
I've also noticed you included different authorities, meaning they would need to be able to get through police doors.
I think that's something you need to modify in a different script. I'll research.

[editline]22nd June 2014[/editline]

Question, are you editing the files in the DarkRP gamemode folder or are you using the mod to allow safe editing of the DarkRP gamemode?

[editline]22nd June 2014[/editline]

Better yet, I might aswell ask if you want me to help you over Steam.