DarkRP Job Screw-Up?

Ok so I didnt know what section to put this in, if it’s a bad one can a mod move it? Anyway, I own a DarkRP server; but for some reason my job stays stuck as Drug Dealer. It says ‘Citizen’ or whatver job I choose, but I’m still the Drug Dealer color and can sell drugs, and I can reselect the job in the F4 menu. It’s as if I’m two jobs at a time. I coould not and cannot find a solution to this. Any help? I’m trying to keep ‘delete your DarkRP and re-install’ as a last resort because it’s customized alot. Any help?

What have you modified in relation to jobs?

I have a added many custom jobs. But this JUST started happening. I have ha this edited for a while now. I don’t know what could have possibly done such a thing. I have tried deleting sv.db too.

Add me on steam, click the button under my name please.

Or post the shared.lua code here with [lua] tags.

[lua]
TEAM_CITIZEN = AddExtraTeam(“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/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”
},
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 = 45,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_POLICE = AddExtraTeam(“Civil Protection”, {
color = Color(25, 25, 170, 255),
model = “models/player/police.mdl”,
description = [[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]],
weapons = {“arrest_stick”, “unarrest_stick”, “weapon_real_cs_glock18”, “stunstick”, “door_ram”, “weaponchecker”},
command = “cp”,
max = 4,
salary = 65,
admin = 0,
vote = true,
hasLicense = true
})

TEAM_GANG = AddExtraTeam(“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/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”,
“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 Mobboss sets your agenda and you follow it or you might be punished.]],
weapons = {“weapon_real_cs_knife”},
command = “gangster”,
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_MOB = AddExtraTeam(“Mob boss”, {
color = Color(25, 25, 25, 255),
model = “models/player/gman_high.mdl”,
description = [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficent crime
organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]],
weapons = {“lockpick”, “unarrest_stick”, “weapon_real_cs_knife”, “weapon_real_cs_glock18”},
command = “mobboss”,
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_GUN = AddExtraTeam(“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.
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]],
weapons = {“weapon_real_cs_knife”},
command = “gundealer”,
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_MEDIC = AddExtraTeam(“Medic”, {
color = Color(47, 79, 79, 255),
model = “models/player/kleiner.mdl”,
description = [[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.]],
weapons = {“med_kit”, “weapon_real_cs_knife”},
command = “medic”,
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_COOK = AddExtraTeam(“Cook”, {
color = Color(238, 99, 99, 255),
model = “models/player/mossman.mdl”,
description = [[As a cook, it is your responsibility to feed the other members
of your city.
You can spawn a microwave and sell the food you make:
/Buymicrowave]],
weapons = {},
command = “cook”,
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})

TEAM_CHIEF = AddExtraTeam(“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 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]],
weapons = {“arrest_stick”, “unarrest_stick”, “weapon_real_cs_deagle”, “weapon_real_cs_pumpshotgun”, “stunstick”, “door_ram”, “weaponchecker”},
command = “chief”,
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = true,
NeedToChangeFrom = TEAM_POLICE
})

TEAM_MAYOR = AddExtraTeam(“Mayor”, {
color = Color(150, 20, 20, 255),
model = “models/player/breen.mdl”,
description = [[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]],
weapons = {“weapon_real_cs_usp”, “stunstick”},
command = “mayor”,
max = 1,
salary = 85,
admin = 0,
vote = true,
hasLicense = false
})

TEAM_HOBO = AddExtraTeam(“Hobo”, {
color = Color(80, 45, 0, 255),
model = “models/player/corpse1.mdl”,
description = [[The lowest member of society. All people see you laugh.
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”, “weapon_real_cs_knife”},
command = “hobo”,
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false
})

//ADD CUSTOM TEAMS UNDER THIS LINE:
TEAM_SWAT = AddExtraTeam(“S.W.A.T”, Color(0,0,153,255), “models/player/swat.mdl”, [[Raid And Protect From Terrorists
]], {“weapon_real_cs_five-seven”, “weapon_real_cs_ump_45”, “keys”}, “swat”, 4, 80, 0, true, true)
TEAM_SWATCHEIF = AddExtraTeam(“S.W.A.T Cheif”, Color(227, 116, 29, 255), “models/player/riot.mdl”, [[Lead the S.W.A.T. to victory in dangerous battles.
]], {“weapon_real_cs_usp”, “weapon_real_cs_pumpshotgun”, “weapon_real_cs_sg550”, “keys”}, “swatcheif”, 1, 80, 0, true, true, TEAM_SWAT)
TEAM_SWATSNIPER = AddExtraTeam(“S.W.A.T Sniper”, Color(227, 116, 29, 255), “models/player/gasmask.mdl”, [[Pick 'em out one by one.
]], {“weapon_mad_usp”, “weapon_real_cs_pumpshotgun”, “weapon_real_cs_awp”, “keys”}, “swatsniper”, 2, 75, 0, true, true)
TEAM_ADMIN = AddExtraTeam(“ADMIN POLICE”, Color(255,255,255,255), “models/player/Combine_Super_Soldier.mdl”, [[The Admin Police is only used by admins, they do the most basic admin things.
]], {“weapon_real_cs_desert_eagle”, “StunStick”, “Arrest Baton”, “Unarrest Baton”, “keys”}, “adminpolice”, 5, 100, 1, false, true, function(ply) return ply:CheckGroup(“usergroup”) == “admin” end)
TEAM_HITMAN = AddExtraTeam(“Hitman”, Color(255, 20, 255, 255), “models/player/arctic.mdl” , [[Get paid to kill people. Simple right? Minimum hit price is $80.
]], {“weapon_real_cs_glock18”,“weapon_real_cs_scout”, “keys”}, “hitman”, 2, 30, 0, true, true)
TEAM_CARDEALER = AddExtraTeam(“Car Dealer”, Color(0, 100, 255, 255), “models/player/eli.mdl” , [[Sell cars to people.
]], {“weapon_real_cs_knife”, “keys”}, “cardealer”, 2, 45, 0, false, false)
TEAM_DRUGDEALER = AddExtraTeam(“Drug Dealer”, Color(0, 255, 100, 255), “models/player/soldier_stripped.mdl” , [[Sell drugs for money.
]], {“weapon_real_cs_knife”, “keys”}, “drugdealer”, 3, 35, 0, false, false)
TEAM_HOBOLORD = AddExtraTeam(“Hobo Lord”, Color(100, 100, 100, 255), “models/player/zombie_classic.mdl”, [[Ruler of the Hobos!
]], {“weapon_real_cs_knife”, “keys”}, “hobolord”, 1, 0, 0, false, false, TEAM_HOBO)
TEAM_THEIF = AddExtraTeam(“Theif”, Color(0, 230, 10, 255), “models/player/guerilla.mdl”, [[The cops hate you and every time they see you they can chase you.
]], {“keypad_cracker”, “weapon_real_cs_knife”, “lockpick”, “keys”}, “theif”, 4, 20, 0, false, false)
TEAM_BUILDER = AddExtraTeam(“Builder”, Color(255, 230, 10, 255), “models/player/odessa.mdl”, [[You construct buildings for pay
]], {“weapon_real_cs_knife”, “keys”}, “builder”, 4, 45, 0, false, false)
TEAM_DRUGLORD = AddExtraTeam(“Drug Lord”, Color(0, 29, 255, 255), “models/player/soldier_stripped.mdl”, [[Command around the drug dealers. Also deal drugs.
]], {“weapon_real_cs_knife”, “weapon_real_cs_five-seven”, “keys”}, “druglord”, 1, 35, 0, false, false, TEAM_DRUGDEALER)
TEAM_PEDO = AddExtraTeam(“Pedophile”, Color(255, 100, 100, 255), “models/player/pbear/pbear.mdl”, [[Pedophile, mainly just a fun job.
]], {“keys”}, “pedophile”, 2, 10, 0, false, false)
TEAM_ERROR = AddExtraTeam(“Error Sign”, Color(255, 0, 0, 255), “models/player/nothiungcusyouerror.mdl”, [[You annoy people. Errors are annoying.
]], {“weapon_bugbait”, “weapon_real_cs_knife”, “keys”}, “errorsign”, 4, 559, 0, false, false, nil, function(ply) return ply:CheckGroup(“operator”) or ply:IsAdmin() end)
TEAM_HOTEL = AddExtraTeam(“Hotel Manager”, Color(0, 100, 150, 255), “models/player/hostage/hostage_02.mdl”, [[Own a hotel. Serve your guests.
]], {“keys”}, “hotelmanager”, 1, 50, 0, false, false)
TEAM_SECURITY = AddExtraTeam(“Security”, Color(255, 100, 0, 255), “models/player/guerilla.mdl”, [[Hired to protect people, or businesses.
]], {“weapon_mad_knife”, “weapon_real_cs_usp”, “keys”}, “security”, 3, 45, 0, false, false)
TEAM_BLACKMARKET = AddExtraTeam(“Black Market Dealer”, Color(50, 50, 50, 255), “models/player/leet.mdl”, [[Sell illegal things. Don’t let the cops catch you!
]], {“weapon_crowbar”, “keys”}, “blackmarket”, 3, 35, 0, false, false)
TEAM_ZOMBIECONTROL = AddExtraTeam(“Zombie Control”, Color(0, 10, 245, 255), “models/player/phoenix.mdl”, [[Protect the citizens of the city from zombies.
]], {“weapon_mad_usp”, “keys”}, “zombiecontrol”, 2, 70, 0, false, false)
TEAM_ZOMBIECHIEF = AddExtraTeam(“Zombie Control Chief”, Color(20, 20, 255, 255), “models/player/urban.mdl”, [[Protect the citizens of the city from zombies.
]], {“weapon_mad_mac10”, “keys”}, “zombiecontrolchief”, 2, 70, 0, false, false, TEAM_ZOMBIECHIEF)
/*

HOW TO MAKE A DOOR GROUP

AddDoorGroup(“NAME OF THE GROUP HERE, you see this when looking at a door”, Team1, Team2, team3, team4, etc.)

WARNING: THE DOOR GROUPS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!

The default door groups, can also be used as examples:
*/
AddDoorGroup(“Cops and Mayor only”, TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_SWAT, TEAM_ADMIN, TEAM_SWATCHEIF)
AddDoorGroup(“Gundealer only”, TEAM_GUN)

/*

HOW TO MAKE AN AGENDA

AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))

WARNING: THE AGENDAS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!

The default agenda’s, can also be used as examples:
*/
AddAgenda(“Gangster’s agenda”, TEAM_MOB, {TEAM_GANG, TEAM_THEIF})
AddAgenda(“Police agenda”, TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE, TEAM_SWAT, TEAM_SWATCHEIF, TEAM_SWATSNIPER, TEAM_ADMIN})
AddAgenda(“Hobo Agenda”, TEAM_HOBOLORD, {TEAM_HOBO, TEAM_ERRORSIGN, TEAM_PEDO})
AddAgenda(“Drug Dealer Agenda”, TEAM_DRUGLORD, {TEAM_DRUGDEALER})
[/lua]
Here it is guys.

Is that still working? The old version of creating jobs ?

What do you mean? I got everything off the wiki, and just modified there code. IT’s been working perfectly fine, until now.

[editline]19th February 2013[/editline]

Ok I’ve deleted all my DarkRP… Guess what? It still didn’t do shit! Maybe this has to do with something clientside?

Any help?

Try this with all the custom jobs.

Old Version
[LUA]
TEAM_SWAT = AddExtraTeam(“S.W.A.T”, Color(0,0,153,255), “models/player/swat.mdl”, [[Raid And Protect From Terrorists
]], {“weapon_real_cs_five-seven”, “weapon_real_cs_ump_45”, “keys”}, “swat”, 4, 80, 0, true, true)
[/LUA]
New Version
[LUA]
TEAM_SWAT = AddExtraTeam(“S.W.A.T”, {
color = Color(0,0,153,255),
model = “models/player/swat.mdl”,
description = [[Raid And Protect From Terrorists]],
weapons = {“weapon_real_cs_five-seven”, “weapon_real_cs_ump_45”, “keys”},
command = “swat”,
max = 4,
salary = 80,
admin = 0,
vote = true,
hasLicense = true
})
[/LUA]

I fixed it, R@Rdeathmatch I just saw your post. I just switched to a regular non-edited version of DarkRP and then switched back and it worked… Thanks for the effort guys.