Garry's Mod

Garry's Mod

Better Doors - Group DarkRP Doors
35 Comments
mozi_h  [author] 2 Dec, 2024 @ 5:06am 
@AppleSFM use /setgroup without a group name to remove its group and have the door behave like default again.
Apple 2 Dec, 2024 @ 2:47am 
how to remove the door?
mozi_h  [author] 1 Jun, 2024 @ 6:37am 
@Walter White Saw your comment kinda late, but I added you so we can dm for more details.
Pascal Case 22 May, 2024 @ 1:32pm 
Hello, may I make an edit of your addon or can I send you code to add more functionality to your addon. I can dm you more details.
HypFox 6 Jul, 2023 @ 11:15am 
i would like that very much, also for all doors to have the group name on the door, for example hangar written on door, on all doors that are grouped with hangar
mozi_h  [author] 14 Apr, 2023 @ 4:23pm 
Unlikely, at least anytime soon. That would require some extra save stuff, so it's a bit of a hassle to add.
Maybe I'll feel like coding it in some day.
If you read this as a random passer by and would also like this feature: Please comment so.
Joshua Graham 2 Apr, 2023 @ 12:15pm 
This is a great addon. Any chance you could add being change the price of doors so you could essentially make some properties more expensive than others?
Zeatth 9 Dec, 2022 @ 12:59am 
Just checked and no other door addons are being used on the server. I will remove that code and see if it helps
mozi_h  [author] 8 Dec, 2022 @ 3:06pm 
@Zeatth in my testing, respecting maxdoors works as intended (Always allow one complex, then respect door limit).
Does it do nothing or show the "hit door limit" hint? Are any other DarkRP door-related addons installed (e.g. Door Signs and whatnot)?

You can strip BetterDoors of any maxdoor checks by removing Lines 140 to 145 from https://github.com/mozi-h/Better-Doors/blob/master/lua/betterdoors/betterdoors_sv.lua#L140 and installing that on your server (plop into your addons folder as usual).
Zeatth 8 Dec, 2022 @ 11:14am 
Anyone having issues where people just can't buy doors and have hit door limit with 0 doors owned? Only happened since I installed this addon
mozi_h  [author] 19 Jun, 2022 @ 1:02pm 
@[MG] Phillipm02
The commands are for in-game use in chat. As superadmin, look at a door and assign a group. Repeat for all doors in the same group. Change the name between different groups. See the video above for a viasual guide.
Phillipm02 18 Jun, 2022 @ 3:21am 
How do I enter the commands in my server console? If I do this it says "Unknown command: /setgroup"
mozi_h  [author] 14 Mar, 2022 @ 2:11pm 
@meKCHanik_KOłodziej
The question makes little sense, I think you didn't understand the concept:
Groups are for the doors to know in what apartment complex / house they are. Owner management is still done the default was of pressing F2 or Reload with keys on them.

If you are referring to assigning a job group (set in darkrpmodification) to own a better doors group, you cannot. Instead, go the default route of adding job ownership to every door you want with the default F2-Admin-Menu.

If you want to force an owner onto a door group via admin magic (e.g. "/setowner mozi"), you can't. The best you can do is giving that player the money to buy the door themselves (I am not aware of any DarkRP Admin console command to set a door's owner either).
Mekchanik 14 Mar, 2022 @ 1:33pm 
is this possible to set owner to group?
Kanako 26 Feb, 2022 @ 9:28am 
@mozi_h

I only have the darkrp and rockford map on my collection, i use the Github version of the addon and add it to the server but when i try ingame, none of the command work
mozi_h  [author] 25 Feb, 2022 @ 5:51pm 
@Kanako

On startup, does it say "Loading Better Doors" (client-side and server-side)?

What exactly does not work:
Does /setgroup and the other commands work?
Does bulk-buying work?
Does bulk-selling work?
Are co-owners synced?
Do co-owners inherit when the owner leaves?

Do you have other add-ons installed? Do any modify door-related stuff? (Fancier door signs, overwritten door menus etc.)
An exact add-on list might help, but is probably not needed. If you have a collection already, it doesn't hurt to know it.
Kanako 25 Feb, 2022 @ 2:08pm 
I put Better doors on my sever but for unknow reason, it just doesn't work, any tips @mozi_h ?
Theodore Roosevelt 27 Dec, 2021 @ 1:13pm 
Works perfectly and I love having these little background tools to help with my server! :D
Rage 3 May, 2021 @ 7:57am 
@mozi_h could you add my on Discord? this addon is conflicting with a few of my addons and making them not function as suppose to. rage#2014. just want to clear some things up and possibly fix this, so other people won't run into this problem.
mozi_h  [author] 30 Apr, 2021 @ 2:16pm 
@Rage Updated. It will now respect maxdoors, but always allow at least one complex to be bought.
Rage 30 Apr, 2021 @ 12:29am 
@mozi_h appreciate it, let me know when its fixed!
mozi_h  [author] 29 Apr, 2021 @ 1:03pm 
@Rage I found the issue and will update Better Doors soon (this week; probs tomorrow) to respect GAMEMODE.Config.maxdoors
Rage 29 Apr, 2021 @ 2:12am 
When setting my default DarkRP config maxdoors to 1 (1 property), this addon overrides it and I can buy like half the maps doors. is there a way to fix this? add me on Discord to talk rage#2014:)
mozi_h  [author] 17 Jan, 2021 @ 12:34pm 
I finally overcame kdenlive's love for voiding audio and rendered a tutorial video. You're welcome. :balloon:
Knight 7 Aug, 2020 @ 5:52pm 
@Czak - "I have used the commands they does not work... there is just a thing on the chat that this has been set but it is not. I even tried restarting the server."

Add two doors together in a group with /setgroup and then /listgroups after you've done it. It should say in the chat:
groupname (amountofdoors e.g 1,2,3 etc)

Only issue that is now patched by the author is that it wasn't persistent through sessions because it wasn't creating the "betterdoors" data directory. That's now fixed afaik.
mozi_h  [author] 7 Aug, 2020 @ 11:45am 
I think you're experiencing the same problem that therealknight pointed out in the GitHub repository: There is an oversight, where Better Doors will not create the garrysmod/data/betterdoors directory automatically, thus not saving between sessions.
I am currently patching this, you can create the directory manually to fix this issue.
Czak 7 Aug, 2020 @ 2:45am 
I have used the commands they does not work... there is just a thing on the chat that this has been set but it is not. I even tried restarting the server.
mozi_h  [author] 6 Aug, 2020 @ 11:38pm 
There are no premade configs for that map, thus you need to group doors together using the commands. Do they work? If so, set up as described above, if not verify that "Loading Better Doors" shows up in console.
Czak 6 Aug, 2020 @ 2:31am 
rp_downtown_v4c_v1 it just does not work does not show group on the doors
mozi_h  [author] 5 Aug, 2020 @ 12:10pm 
If there's a bug, I'd like to fix it; what seems to not work, Czak?
Can you use the commands? (What map are you on?) Do you see a message saying "Loading Better Doors" in the console (client- and mor importantly server-side)? How did you install the addon?
Czak 5 Aug, 2020 @ 10:35am 
Does not work dont download its not worth
BISTOPH 5 May, 2020 @ 4:23pm 
Super useful my dude i love please keep it up!!!
rogi 3 May, 2020 @ 11:36am 
good addon
mozi_h  [author] 22 Apr, 2020 @ 11:39pm 
If you're on a map with no premade config, simply go to each door and do "/setgroup <name>" on each. Set the group name to the same on doors you want to be grouped together.
If you have 4 apartment doors near the PD, you cound do "/setgroup apartment by PD" on each of them. Repeat (with different group names) on every occasion like this. It saves automatically and will work every time the same map is loaded.
Use /getgroup if you want to know what group a door has, /listgroups to see how many groups are set on the current map and to remove a door from any group do /setgroup without any argument. Any door with no group will behave like usual.

Hope that clears it up. May add a quick video tutorial in the future.
Famine 22 Apr, 2020 @ 9:43pm 
How do I set this up? I am quite confused on how the set up works, there is no detailed instructions for people such as I to understand