• DarkRP Jobs isn't working correctly.
    2 replies, posted
Hello everyone. I'm a Developer for a DarkRP server (which is currently in development) and I ran into this problem half way into development. Whenever I would try to pick any job off of the F4 menu, it wouldn't become that job. All you would notice is a click sound in-game and you would see that the job is attempting to start through console using the command such as /hobo. I tried to find the problem in jobs.lua but everything seemed to be in the right place, and no lua errors appeared in the console. I also tried to find an article online about my situation but I couldn't find anything related to the problem. I'm not sure if it's some sort of script/addon interfering with the jobs or if it's just a simple error in jobs.lua. Can anyone help me with my issue? I will provide evidence to support my problem. And please don't ask to have access to the "Control Panel" or "Server Files" because I wasn't asking for a full time coder, just someone that can give me tips and help me out. [B]Important: This isn't a post for "Lua help". All I need is some simple answers that can help me out with my problem provided with evidence. I was never asking for any kind of coding help.[/B] Job Command Attempt ~ [url]https://gyazo.com/45340b734964d18323138cf3e86648bc[/url] [B][U]jobs.lua Code[/U][/B] --[[--------------------------------------------------------------------------- DarkRP custom jobs --------------------------------------------------------------------------- This file contains your custom jobs. This file should also contain jobs from DarkRP that you edited. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua Once you've done that, copy and paste the job to this file and edit it. The default jobs can be found here: [url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url] For examples and explanation please visit this wiki page: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Add jobs under the following line: ---------------------------------------------------------------------------]] 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 = {"weapon_fists"}, command = "citizen", max = 0, salary = 35, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Other", }) 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 = {"m9k_glock", "lockpick", "weapon_fists"}, command = "gangster", max = 3, salary = 30, admin = 0, vote = false, hasLicense = false, category = "Criminal", }) 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", "m9k_deagle",}, command = "mobboss", max = 1, salary = GAMEMODE.Config.normalsalary * 1.34, admin = 0, vote = false, hasLicense = false, category = "Criminal", }) TEAM_HOBO = DarkRP.createJob("Hobo", { color = Color(80, 45, 0, 255), model = "models/player/scavenger/scavenger.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", "weapon_angryhobo"}, command = "hobo", max = 5, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, category = "General", }) TEAM_STAFF = DarkRP.createJob("Staff on Duty", { color = Color(25, 25, 25, 255), model = "models/player/combine_super_soldier.mdl", description = [[Your a Admin on Duty, do your job and help out the users!]], weapons = {"unarrest_stick", "weapon_keypadchecker", "door_ram"}, command = "staff", candemote = false, max = 5, salary = 0, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "Moderator", "Admin", "HeadAdmin", "Trial Moderator", "admin", "Senior Admin"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "You don't have the required rank to complete this action!", }) TEAM_BANKER = DarkRP.createJob("Banker", { color = Color(255, 123, 0, 255), model = "models/player/hostage/hostage_01.mdl", description = [[Store items such as printers and printers in return for money.]], weapons = {"weapon_fists"}, command = "banker", candemote = true, max = 1, salary = 75, admin = 0, vote = false, hasLicense = false, category = "General", }) TEAM_BANKGUARD = DarkRP.createJob("Bank Guard", { color = Color(255, 123, 0, 255), model = "models/player/mossman_arctic.mdl", description = [[Protect the banker and the belongings inside.]], weapons = {"stunstick", "m9k_hk45", "weapon_fists"}, command = "bankguard", candemote = true, max = 2, salary = 65, admin = 0, vote = false, hasLicense = true, category = "General", }) TEAM_MAYOR = DarkRP.createJob("Mayor", { color = Color(150, 20, 20, 255), model = "models/obama/obama.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 = {"m9k_deagle"}, command = "mayor", max = 1, salary = 50, admin = 0, vote = true, hasLicense = false, mayor = true, category = "Goverment", }) 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
Any errors? Otherwise, you should reinstall DarkRP. Also, use [code] tags in the future on the forums.
[QUOTE=code_gs;50987220]Any errors? Otherwise, you should reinstall DarkRP. Also, use [code] tags in the future on the forums.[/QUOTE] No errors so far, however I did consider reinstalling DarkRP. Thanks for the advice, code.
Sorry, you need to Log In to post a reply to this thread.