Jobs Not Working?

So I was adding custom jobs to my new garrys mod server and when i removed a job they all broke and i cannot find the reason to why they have all disappeared, Im terrible with coding and was hoping someone could help me with the jobs just in time for me to open then server :smiley: Thanks Alot!


 

TEAM_COMMANDER = AddExtraTeam("Commander", Color(153, 102, 0, 255), "models/codmw2/codmw2he.mdl", [[You Lead The Soldiers, Lead Them Into Missions And
Jobs]], {"arrest_stick","stunstick","unarrest_stick","weaponchecker","door_ram","keypad_cracker","m9k_scar","m9k_deagle","m9k_mossberg590","weapon_real_cs_grenade"}, "commander", 1, 100, 1, true, true, false)
 
TEAM_SOLDIER = AddExtraTeam("Soldier", Color(204, 153, 0, 255), "models/codmw2/codmw2m.mdl", [[Protect The City When The Police Cant, Use Any
Reasonable Force Necessary. ]], {"arrest_stick","stunstick","unarrest_stick","weaponchecker","door_ram","m9k_m16a4_acog","m9k_sig_p229r","Keypad_cracker"}, "soldier", 4, 80, 1, true, true, false)
 
TEAM_POLICE = AddExtraTeam("Police", Color(51, 51, 255, 255), "models/player/uk_police/uk_police_04.mdl", [[Patrol The City, Look Out For Law Breakers]], {"unarrest_stick","arrest_stick","weaponchecker","door_ram","stunstick","m9k_m92beretta"}, "police", 10, 60, 0, true, true, false)
 
TEAM_MAFIABOSS = AddExtraTeam("Mafia Boss", Color(0, 0, 0, 255), "models/humans/mafia/male_09.mdl", [[You Are The Mafia Boss, Lead Your Mafia To Do Your Dirty Work]], {"m9k_thompson"}, "mafiaboss", 1, 75, 0, false, true, false)
 
TEAM_MAFIA = AddExtraTeam("Mafia", Color(153, 0, 0, 255), "models/humans/mafia/male_07.mdl", [[You Are The Mafia, Follow Your Boss\'s Commands
And Do Illegal things, Dont Get Caught By The
Cops!]], {"m9k_colt1911"}, "mafia", 5, 65, 0, false, false, false)

TEAM_BANE = AddExtraTeam("Bane", Color(51, 0, 0, 255), "models/norpo/arkhamorigins/assassins/bane_valvebiped.mdl", [[Bane's custom job. Bane is the leader of all
criminals. He commands the Terrorists and the
Gangsters. For Bane!]], {"weapon_ak472","weapon_deagle2"}, "bane", 1, 200, 2, false, false, false)
 
TEAM_HITMAN = AddExtraTeam("Hitman", Color(51, 51, 51, 255), "models/player/Phoenix.mdl", [[You're a Hitman. You kill people and get paid
money. You get paid $200 to kill people. If you
get caught killing as a Hitman you are AOS. If a
CP catches some one placing a hit then they are
AOS.]], {"m9k_svu","m9k_colt1911","lockpick","keypad_cracker"}, "hitman", 1, 250, 0, true, false, false)
 
TEAM_POLICECHEIF = AddExtraTeam("Police Cheif", Color(0, 51, 204, 255), "models/player/nypd/cop_04.mdl", [[You Are The Police Cheif, Lead other Police On
Missions Or Other Jobs]], {"m9k_deagle","arrest_stick","unarrest_stick","stunstick","weaponchecker","m9k_remington870","door_ram"}, "policecheif", 1, 80, 0, true, true, false)
 
TEAM_TERRORIST2ND = AddExtraTeam("Terrorist 2nd In Command", Color(0, 0, 0, 255), "models/player/leet.mdl", [[You are the 2nd in command in the terrorist
organisation. When Bane is not around you\'re to
give orders out to the terrorists. If you fail an
attack Bane will not be happy...]], {"m9k_ak47","weapon_p2282","lockpick","unarrest_stick"}, "terrorist2nd", 1, 200, 0, true, false, false)
 
TEAM_ADMINONDUTY = AddExtraTeam("Admin On Duty", Color(0, 255, 255, 255), "models/player/combine_super_soldier.mdl", [[You're an admin on duty, watch over the server.]], {}, "adminonduty", 0, 0, 1, false, false, false)
 
TEAM_SAONDUTY = AddExtraTeam("Super Admin On Duty", Color(0, 255, 255, 255), "models/player/combine_super_soldier.mdl", [[You're a Super Admin On Duty, watch over the
server.]], {}, "saonduty", 0, 0, 2, false, false, false)
 
TEAM_COONDUTY = AddExtraTeam("Co-Owner On Duty", Color(0, 255, 255, 255), "models/player/combine_super_soldier.mdl", [[You're the Co-Owner on duty, watch over the
server.]], {}, "coonduty", 0, 0, 2, false, false, false)
 
TEAM_OWNERONDUTY = AddExtraTeam("Owner On Duty", Color(0, 204, 204, 255), " models/player/combine_super_soldier.mdl", [[You're the Owner on duty, watch over the server.]], {}, "owneronduty", 0, 0, 2, false, false, false)
 
TEAM_RAPIST = AddExtraTeam("Rapist", Color(204, 51, 153, 255), "models/player/alyx.mdl", [[Rape The Public!
 
Remember To /advert Rape]], {"weapon_rape"}, "rapist", 2, 50, 1, false, false, false)
 
TEAM_HOTEL = AddExtraTeam("Hotel Owner", Color(102, 204, 51, 255), "models/player/group01/Male_08.mdl", [[You're the hotel owner. You can rent your "fine
apartments" to anyone in the city. You must
collect $200 from who ever is in there. If
they're in the room without paying you MUST
contact the Civil Protection and they will be
arrested. ]], {}, "hotel", 1, 80, 0, false, false, false)
 
TEAM_TERRORIST = AddExtraTeam("Terrorist", Color(0, 0, 0, 255), "models/player/leet.mdl", [[For Bane! You're a Terrorist, you do attacks on
certain locations. Terrorists don't raid as they
are more extreme and spread terror and fear
through the city! (When attacking do /advert
Terrorist Attack <Location here> For Bane!. This
must be added to show your group)]], {"m9k_ak47"}, "terrorist", 2, 250, 0, true, false, false)
 
TEAM_BOMBER = AddExtraTeam("Jihad Bomber", Color(0, 0, 0, 255), "models/jessev92/player/misc/osamabl1.mdl", [[You Are A Jihad Bomber, Sacrifice Yourself And
Others For Allah!]])
 
TEAM_STRIPPER = AddExtraTeam("Stripper", Color(204, 0, 153, 255), "models/player/alyx.mdl", [[You're a Stripper... Yeah... You dance for
money... Yeah... Get paid to dance... That is all
pretty much...]], {}, "stripper", 2, 70, 0, false, false, false)
 
TEAM_PROSTITUTE = AddExtraTeam("Prostitute", Color(204, 0, 255, 255), "models/player/alyx.mdl", [[You f*ck for money! Enjoy!]], {}, "prostitute", 2, 60, 0, false, false, false)
 
TEAM_PIMP = AddExtraTeam("Pimp", Color(255, 0, 0, 255), "models/player/eli.mdl", [[You're a Pimp, you can sell Girls to people.]], {}, "pimp", 1, 80, 0, false, false, false)
 
TEAM_DJ = AddExtraTeam("DJ", Color(102, 0, 153, 255), "models/player/group01/male_01.mdl", [[Play music for people! (You must have a club)]], {}, "dj", 2, 50, 0, false, false, false)
 
TEAM_SINGER = AddExtraTeam("Singer", Color(102, 204, 51, 255), "models/player/group01/Male_02.mdl", [[Sing For the public! (Must have a stage or a club)]], {}, "singer", 2, 50, 0, true, false, false)
 
TEAM_BANKER = AddExtraTeam("Banker", Color(51, 102, 255, 255), "models/player/barney.mdl", [[Create a bank and look after the publics money and
items!]], {}, "banker", 2, 45, 0, false, false, false)
 
TEAM_CORRUPT = AddExtraTeam("Hippie", Color(51, 102, 255, 255), "models/player/group01/male_03.mdl", [[You are a Hippie! Smoke weed and protest about the
environment!]], {"durgz_weed"}, "corrupt", 5, 45, 0, false, false, false)
 
TEAM_DRUGDEALER = AddExtraTeam("Drug Dealer", Color(102, 153, 0, 255), "models/player/soldier_stripped.mdl", [[You're a Drug dealer, you can sell illegal drugs
around the city. Be careful and do not get caught!]], {}, "drugdealer", 2, 60, 0, false, false, false)
 

It would definitely help if you sent us the error you are getting. “It doesn’t work” isn’t really descriptive.

Well you can start by using the correct and not extremely old way of doing it:

TEAM_PIRATE = DarkRP.createJob(“Pirate”, { – That’s TEAM_PIRATE (Used for like AddCustomDoorgroup or Add to only that group to a door. Also, never use the same TEAM_)
color = Color(80, 5, 255, 0), – Chat / Scoreboard Color
model = “models/player/swat.mdl”, – Model; to add multiple use {“models/…/model1.mdl”,"models/…/model2.mld}, NOTE the extra comma after the bracket.
description = [[Description.]], --Description for Job.
weapons = {“med_kit”}, – Weapons for a job. Seperate them with a “,” eg: “med_kid”, “armor_kit” always finish the last one without a “,”
command = “pirate”, --Chat command for job. Don’t use the same as another teams.
max = 5, – Maximum amount of players for this job.
salary = 200, – The salary they get paid.
admin = 0, – Requires Admin? 1 for yes, 0 for no.
vote = true, – Do they need to vote? true for yes, false for no.
hasLicense = true, – Do they have a license for weapons?
})


hasLicense = true,

Might wanna fix that.

Basically, I removed a job from the jobs.lua and when i reloaded the server all the jobs disappeared and i havent been able to find the solution of how to do it, And its quite frustrating

[editline]20th May 2014[/editline]

that hasent been a problem

Open your console then you will probably find the problem if you dont copy paste it here.And probably you are forgetting “,” at the end of stuff.And please use

TEAM_PIRATE = DarkRP.createJob("Pirate", { -- That's TEAM_PIRATE (Used for like AddCustomDoorgroup or Add to only that group to a door. Also, never use the same TEAM_)
color = Color(80, 5, 255, 0), -- Chat / Scoreboard Color
model = "models/player/swat.mdl", -- Model; to add multiple use {"models/../model1.mdl","models/../model2.mld}, NOTE the extra comma after the bracket.
description = [[Description.]], --Description for Job.
weapons = {"med_kit"}, -- Weapons for a job. Seperate them with a "," eg: "med_kid", "armor_kit" always finish the last one without a ","
command = "pirate", --Chat command for job. Don't use the same as another teams.
max = 5, -- Maximum amount of players for this job.
salary = 200, -- The salary they get paid.
admin = 0, -- Requires Admin? 1 for yes, 0 for no.
vote = true, -- Do they need to vote? true for yes, false for no.
hasLicense = true, -- Do they have a license for weapons?
}) 

like atticusmas did.