• DarkRP - Jobs not working?
    6 replies, posted
Hi, my friend and I started a new RP server. I got stuck doing the jobs. When I was done with them, the salary and wallet were both 0 and everyone's playermodels were like a grey person with no animation. What am I doing wrong? Any help? Thanks. [lua] 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"}, [[Get a job! Press F4 for the menu and select a job to your liking.]], {"punchy"}, "citizen", 0, 145, 0, false, false) TEAM_GANG = AddExtraTeam("Grove Street", Color(0, 255, 0, 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", "models/player/Group03/Male_09.mdl"}, [[The lowest person of crime. Grove street get what they want, when they want. Nobody bosses them around. Sworn Enemies with The Ballas.]], {"punchy"}, "grovestreet", 9, 145, 0, false, false) TEAM_MOB = AddExtraTeam("Grove Street Leader", Color(0, 255, 0, 255), "models/player/gman_high.mdl", [[The lowest person of crime. Grove street get what they want, when they want. Nobody bosses them around. Sworn Enemies with The Ballas.]], {"lockpick", "unarrest_stick", "punchy"}, "grovestreetleader", 1, 160, 0, false, false) TEAM_BALLAS = AddExtraTeam("Ballas", Color(255, 0, 0, 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", "models/player/Group03/Male_09.mdl"}, [[The lowest person of crime. The Ballas get what they want, when they want. Nobody bosses them around. Sworn Enemies with Grove Street.]], {"punchy"}, "ballas", 9, 145, 0, false, false) TEAM_BALLASL = AddExtraTeam("Ballas Leader", Color(255, 0, 0, 255), "models/player/gman_high.mdl", [[The lowest person of crime. The Ballas get what they want, when they want. Nobody bosses them around. Sworn Enemies with Grove Street.]], {"lockpick", "unarrest_stick", "punchy"}, "ballasleader", 1, 160, 0, false, false) TEAM_GUN = AddExtraTeam("Weapon and Tool Dealer", Color(255, 140, 0, 255), "models/player/monk.mdl", [[A weapon and tool dealer is the only person in town that sells guns, explosives and tools. He can sell tools like a lockpick and keypad cracker.]], {"punchy"}, "gundealer", 2, 145, 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.]], {"med_kit", "punchy"}, "medic", 3, 155, 0, false, false) TEAM_COOK = AddExtraTeam("Cook", Color(238, 99, 99, 255), "models/player/mossman.mdl", [[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]], {"punchy"}, "cook", 2, 155, 0, false) TEAM_SWAT = AddExtraTeam("S.W.A.T.", Color(0,0,255,255), "models/player/swat.mdl", [[You are part of the Special Weapons and Tactics forces. Help cops as backup. Raid. Take out the threat with stealth and efficiency.]], {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker", "punchy", "weapon_bd_mp7"}, "swat", 5, 180, 0, false) TEAM_SWATL = AddExtraTeam("S.W.A.T. Commander", Color(0,0,255,255), "models/player/swat.mdl", [[You are part of the Special Weapons and Tactics forces. Help cops as backup. Raid. Take out the threat with stealth and efficiency. Lead your squad.]], {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker", "punchy", "weapon_bd_mp7"}, "swatcommander", 1, 185, 0, false) TEAM_POLICE = AddExtraTeam("Civil 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. Type /wanted <name> to alert the public to this criminal OR go to tab and warrant someone by clicking the warrant button]], {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker", "punchy"}, "cp", 4, 170, 0, true, true) TEAM_CHIEF = AddExtraTeam("Civil 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]], {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker", "punchy"}, "chief", 1, 175, 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 /lottery to set start a lottery 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]], {"punchy"}, "mayor", 1, 200, 0, true, false/*, {TEAM_CHIEF, TEAM_POLICE}*/) /* -------------------------------------------------------- HOW TO MAKE AN EXTRA CLASS!!!! -------------------------------------------------------- You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you're doing!!! Ok here's how: To make an extra class do this: AddExtraTeam( "<NAME OF THE CLASS>", Color(<red>, <Green>, <blue>, 255), "<Player model>" , [[<the description(it can have enters)>]], { "<first extra weapon>","<second extra weapon>", etc...}, "<chat command to become it(WITHOUT THE /!)>", <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team) The real example is here: it's the Hobo: */ --VAR without /!!! The name the color(what you see in tab) the player model The description TEAM_HOBO = AddExtraTeam("Hobo", Color(80, 45, 0, 255), "models/player/corpse1.mdl", [[Get a job, you jobless deadbeat! Press F4 for the m
I've been through almost everything and haven't seen an issue so it's very little detail that you've messed up on. I suggest you start your shared.lua file again and ensure everything you do is coded properly and not rushed. What does your addentities.lua file look like?
check your console for errors
You messed up your shared.lua, unless you want to hunt for that one problem then i'd just restart.
hes shared is fine theres not syntactical errors in it
Latest DarkRP removed door groups. That may be the problem.
They are still in the default shared.lua, they just don't work.
Sorry, you need to Log In to post a reply to this thread.