Problem with DarkRP shared.lua

I honestly have no idea what’s wrong with my shared.lua file. Every time you die as a thief you don’t spawn with a keypad or lock pick until you change to a different job and change back… also, the door groups aren’t working. If someone could please tell me what I’m doing wrong, Id appreciate it very much.

[SUP]TEAM_CITIZEN = AddExtraTeam(“Citizen”, Color(20, 150, 20, 255), {
“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/Female_07.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”},
[[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {“climb_swepnogrip”}, “citizen”, 0, 45, 0, false, false)
//
TEAM_POLICE = AddExtraTeam(“City Protection”, Color(25, 25, 170, 255), “models/player/police.mdl”, [[The protector of every citizen that lives in the city .
You have the power to arrest criminals and protect innocents.
Hit them with your arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to disobey
the law.
The Battering Ram can break down the door of a criminal with a warrant
for his/her arrest.
The Battering Ram can also unfreeze frozen props(if enabled).
Type /wanted <name> to alert the public to this criminal
OR go to tab and warrant someone by clicking the warrant button]], {“climb_swepnogrip”, “arrest_stick”, “unarrest_stick”, “weapon_real_cs_five-seven”, “stunstick”, “door_ram”, “weaponchecker”}, “cp”, 4, 65, 0, true, true)
//
TEAM_GANG = AddExtraTeam(“Gangster”, Color(75, 75, 75, 255), {
“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/Female_07.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”}, [[The lowest person of crime.
A gangster generally works for the Mobboss who runs the crime family.
The Mobboss sets your agenda and you follow it or you might be punished.]], {“climb_swepnogrip”,“weapon_real_cs_knife”}, “gangster”, 3, 20, 0, false, false)
//
TEAM_MOB = AddExtraTeam(“Gangster Leader”, Color(25, 25, 25, 255), “models/player/gman_high.mdl”, [[You are the leader of the gangsters, your motive;
slay all Mafia members.]], {“climb_swepnogrip”,“lockpick”, “weapon_real_cs_knife”}, “mobboss”, 1, 60, 0, true, false)
//
TEAM_GUN = AddExtraTeam(“Gun Dealer”, Color(255, 140, 0, 255), “models/player/monk.mdl”, [[A gun dealer is the only person who can sell guns to other
people.
However, make sure you aren’t caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]], {“climb_swepnogrip”}, “gundealer”, 3, 45, 0, false, false)
//
TEAM_MEDIC = AddExtraTeam(“Medic”, Color(47, 79, 79, 255), “models/player/kleiner.mdl”, [[With your medical knowledge, you heal players to proper
health.
Without a medic, people can not be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]], {“med_kit”, “climb_swepnogrip”}, “medic”, 3, 45, 0, false, false)
//
TEAM_CHIEF = AddExtraTeam(“City Protection Chief”, Color(20, 20, 255, 255), “models/player/combine_soldier_prisonguard.mdl”, [[The Chief is the leader of the Civil Protection unit.
Coordinate the police forces to bring law to the city
Hit them with arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to
disobey 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 this criminal
Type /jailpos to set the Jail Position]], {“climb_swepnogrip”, “arrest_stick”, “unarrest_stick”, “weapon_real_cs_desert_eagle”, “stunstick”, “door_ram”, “weaponchecker”}, “chief”, 1, 75, 0, false, true, TEAM_POLICE)
//
TEAM_MAYOR = AddExtraTeam(“Mayor”, Color(150, 20, 20, 255), “models/player/breen.mdl”, [[The Mayor of the city creates laws to serve the greater good
of the people.
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]], {“climb_swepnogrip”}, “mayor”, 1, 85, 0, true, false/, {TEAM_CHIEF, TEAM_POLICE}/)
//
TEAM_HOBO = AddExtraTeam(“Rape Monster”, Color(80, 45, 0, 255), “models/player/classic.mdl”, [[You’re a rape monster, you dwell in the
sewer and if you’re seen on the surface you
can be killed on sight without it being RDM. ]], {“weapon_bugbait”, “weapon_rape”, “climb_swepnogrip”}, “hobo”, 3, 0, 0, false, false)

//ADD TEAMS UNDER THIS LINE:

TEAM_DRUG = AddExtraTeam(“Drug Dealer”, Color(141, 0, 141, 255), “models/player/odessa.mdl”, [[Sell drugs to the viewing public.]], {“climb_swepnogrip”}, “drugdealer”, 3, 30, 0, false, false)
//
TEAM_ASSASSIN = AddExtraTeam(“Assassin”, Color(200, 75, 75, 255), {“models/player/leet.mdl”, “models/player/guerilla.mdl”}, [[Assassinate players for money, you must have a
note (type: /write kill playername)
to show (IF YOU GET CAUGHT) otherwise it’s RDM.]], {“weapon_real_cs_awp” , “Weapon_real_cs_usp”, “climb_swepnogrip”}, “assassin”, 3, 45, 0, true, false)
//
TEAM_Guard = AddExtraTeam(“Guard”,Color(0,120,255,255),“models/player/barney.mdl”,[[ As a Guard you have to
defend People or buildings, for free or for cash.]],{“weapon_real_cs_p228”, “climb_swepnogrip”},“Guard”, 2, 45, 0, false, false)
//
TEAM_BLACK = AddExtraTeam(“Black Market”, Color(160, 0, 145, 255), “models/player/eli.mdl”, [[Sell illegal contraband.]], {“stunstick”, “climb_swepnogrip”}, “BlackMarket”, 2, 50, 0, false, false)
//
TEAM_SWAT = AddExtraTeam(“S.W.A.T”,Color(0,120,255,255),“models/player/urban.mdl”,[[ You may be called in to raid houses, WITH a warrent from
City Protection]],{“weapon_real_cs_m4a1”,“arrest_stick”, “unarrest_stick”, “weapon_real_cs_p228”, “stunstick”, “door_ram”, “weaponchecker”, “climb_swepnogrip”},“SWAT”, 3, 100, 0, true, true)
//
TEAM_SWAT_leader = AddExtraTeam(“S.W.A.T Leader”, Color(13,78,23,255),“models/player/swat.mdl”, [[Lead the S.W.A.T., you must listen to the mayor though.]], {“weapon_real_cs_m4a1”, “weapon_real_cs_pumpshotgun”, “arrest_stick”, “unarrest_stick”, “weapon_real_cs_p228”, “stunstick”, “door_ram”, “weaponchecker”, “climb_swepnogrip”}, “leader”, 1, 150, 0, true, true, TEAM_SWAT)
//
TEAM_SWAT_sniper = AddExtraTeam(“S.W.A.T Sniper”, Color(51,53,23,255),“models/player/riot.mdl”, [[Swat Sniper, with an extremely precise sniper.]], {“weapon_real_cs_scout”,“arrest_stick”, “unarrest_stick”, “weapon_real_cs_p228”, “stunstick”, “door_ram”, “weaponchecker”, “climb_swepnogrip”}, “sniper”, 3, 100, 0, true, true)
//
TEAM_Bailer = AddExtraTeam(“Bail Bonds”,Color(1,33,100,255), “models/player/soldier_stripped.mdl”,[[ Bail people our from jail, Other Crime: $500 Murder: $1,000’ ]],{“unarrest_stick”,“climb_swepnogrip”},“Bailer”, 2, 55, 0, true, false)
//
TEAM_Mafia = AddExtraTeam(“Mafia”, Color(0,12,255,255), {
“models/player/hostage/hostage_01.mdl”,
“models/player/hostage/hostage_02.mdl”,
“models/player/hostage/hostage_04.mdl”},[[You are a member of the mafia, sworn to slay gangsters.]], {“weapon_real_cs_knife”, “climb_swepnogrip”}, “Mafia”, 5, 20, 0, false, false)
//
TEAM_Mafia_Leader = AddExtraTeam(“Mafia Leader”, Color(0,12,255,255), “models/player/magnusson.mdl”, [[You lead the Mafia to attack the Mob]], {“lockpick”, “weapon_real_cs_knife”, “climb_swepnogrip”}, “MafiaLeader”, 1, 60, 0, true, false)
//
TEAM_Detective = AddExtraTeam(“Detective”, Color(225,0,225,225), “models/player/hostage/hostage_03.mdl”, [[You are an undercover Civil Protection unit.]], {“climb_swepnogrip”, “weapon_real_cs_p228”, “arrest_stick”, “unarrest_stick”, “stunstick”, “lockpick”}, “detective”, 2, 70, 0, true, false)
//
TEAM_Theif = AddExtraTeam(“Thief”, Color(0,0,0,225), “models/player/arctic.mdl”, [[Raid houses for goods, you may team up with the
Mafia or Gangsters.]], {“lockpick”, “keypad_cracker”,“climb_swep”}, “thief”, 3, 10,0, false, false)
//
TEAM_PET = AddExtraTeam(“Pet”, Color(255, 0, 255, 255), “models/player/corpse1.mdl”, [[You must have an owner! pets may not kill
or protect anyone.]], {“climb_swepnogrip”, “pill_headcrab”}, “pet”, 2, 0, 0, false, false, false)

// DOOR GROUPS
AddDoorGroup(“Government”, TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_SWAT, TEAM_SWAT_leader, TEAM_SWAT_sniper, TEAM_Detective, TEAM_Bailer)
AddDoorGroup(“Gundealer”, TEAM_GUN)

// AGENDAS
AddAgenda(“Gangster’s agenda”, TEAM_MOB, {TEAM_GANG})
AddAgenda(“Mafia Agenda”, TEAM_Mafia_Leader, {TEAM_Mafia})
AddAgenda(“Police agenda”, TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE, TEAM_Detective})
AddAgenda(“Swats Agenda”, TEAM_SWAT_leader, {TEAM_SWAT, TEAM_SWAT_sniper})[/SUP]

Nothing is wrong with the shared.lua file as far as I can see.

However, the door groups doesn’t work for me either for some reason. You will have to add every job to the doors. The jobs that are assigned to the doors will be saved to the database and you won’t have to do it every server restart.

Which lua error occurs?
Please put your code in [lua] tags.

Doorgroups are removed. Falco removed this function, no idea when.

[editline]9th August 2012[/editline]

TEAM_Theif = AddExtraTeam(“Thief”, Color(0,0,0,225), “models/player/arctic.mdl”, [[Raid houses for goods, you may team up with the
Mafia or Gangsters.]], {“lockpick”, “keypad_cracker”,“climb_swep”}, “thief”, 3, 10,0, false, false)
Look at the bold thing, you wrote Thief wrong there.
Anyways, are you sure that you have a keypadcracker addon installed? And look in your gamemode/darkrp/content/lua/weapons/ if there is any folder called “lockpick”

[editline]9th August 2012[/editline]

Also, I’d recommend you to always do the same, so, write all TEAM_ names with caps, just so you don’t make mistakes. For like the teams in addentities.lua, you need to fill in what team can buy what. I have no idea if it’s case sensitive, but just to make it sure, keep everything in caps there.

Also, more documentation is available in the official darkrp wiki at www.darkrp.com
(When it’s back)

Yeah what is that? I have no problems accessing it while people constantly complain they do.

Changed the DNS. Should work for everyone again.