• Why aren't my doorgroups working?
    6 replies, posted
Title says it all, I have no clue why they arent working In my doorgroups.lua the command written is "AddDoorGroup("Government Officials only", TEAM_GOVERNMENT)" in my jobs.lua the job i want to be able to unlock the door is "TEAM_GOVERNMENT = DarkRP.createJob("Jail Guard", { color = Color(20, 0, 255, 255), model = {"models/player/barney.mdl"}, description = [[Simply put, you sit in the jail and wait for inmates to arrive, you may then take them to the courtroom so they can appeal their arrest, or take a bribe to let them out of jail]], weapons = {"unarrest_stick", "stuntick", "arrest_stick", "door_ram", "weapon_mac102", "climb_swep2"}, command = "jailg", max = 2, salary = 55, admin = 0, vote = false, hasLicense = true, candemote = true, level = 8, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, }) " I don't know what I did wrong?
The code seems to be fine (to me). Do you have Simplerr disabled?
[QUOTE=ExTaZiE;50008263]The code seems to be fine (to me). Do you have Simplerr disabled?[/QUOTE] no, idk how to do that This has worked before i have no clue why it isn't now
Okay, so to disable Simplerr all you have to do is write #NoSimplerr# in a comment. So, for example, you would put #NoSimplerr# here: [CODE] --[[--------------------------------------------------------------------------- Door groups --------------------------------------------------------------------------- The server owner can set certain doors as owned by a group of people, identified by their jobs. #NoSimplerr# HOW TO MAKE A DOOR GROUP: AddDoorGroup("NAME OF THE GROUP HERE, you will see this when looking at a door", Team1, Team2, team3, team4, etc.) ---------------------------------------------------------------------------]] [/CODE] And in the jobs.lua file: [CODE] --[[--------------------------------------------------------------------------- DarkRP custom jobs --------------------------------------------------------------------------- #NoSimplerr# 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: https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua8 For examples and explanation please visit this wiki page: http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields Add jobs under the following line: ---------------------------------------------------------------------------]] [/CODE] Try that, and then restart your server.
[QUOTE=ExTaZiE;50008270]Okay, so to disable Simplerr all you have to do is write #NoSimplerr# in a comment. So, for example, you would put #NoSimplerr# here: [CODE] --[[--------------------------------------------------------------------------- Door groups --------------------------------------------------------------------------- The server owner can set certain doors as owned by a group of people, identified by their jobs. #NoSimplerr# HOW TO MAKE A DOOR GROUP: AddDoorGroup("NAME OF THE GROUP HERE, you will see this when looking at a door", Team1, Team2, team3, team4, etc.) ---------------------------------------------------------------------------]] [/CODE] And in the jobs.lua file: [CODE] --[[--------------------------------------------------------------------------- DarkRP custom jobs --------------------------------------------------------------------------- #NoSimplerr# 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: https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua8 For examples and explanation please visit this wiki page: http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields Add jobs under the following line: ---------------------------------------------------------------------------]] [/CODE] Try that, and then restart your server.[/QUOTE] Still not working :(
Try adding another job to your door group. (Just to test it)
[QUOTE=ExTaZiE;50008322]Try adding another job to your door group. (Just to test it)[/QUOTE] soo, this is weird, it works for the second job but not the first? [editline]26th March 2016[/editline] [QUOTE=ExTaZiE;50008322]Try adding another job to your door group. (Just to test it)[/QUOTE] For any reason could it be because i have multiple jobs on "TEAM_GOVERNMENT"? The issue was because I had multiple jobs labeled "TEAM_GOVERNMENT"
Sorry, you need to Log In to post a reply to this thread.