Garry's Mod

Garry's Mod

87 ratings
Better Doors - Group DarkRP Doors
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay
File Size
Posted
Updated
11.556 KB
Apr 15, 2020 @ 8:44pm
May 6, 2021 @ 9:57am
10 Change Notes ( view )

Subscribe to download
Better Doors - Group DarkRP Doors

Description
Tired of going up to every door in a building when buying or managing co-owners?
With Better Doors you only need to manage one door and the rest will follow!
In addition to that, should the main owner sell an apartment or disconnect, co-owners inherit doors. No more "Quick! Buy the doors, I crashed"!


Motivate me for more content

Features
  • Doors in one group sync with each other (buy, sell, add / remove owner)
  • Co-owners inherit if the owner sells / leaves
  • Buying door groups costs the according multiple of a single door, same with selling it
  • Easy, one-time setup
  • Respects the DarkRP maxdoor setting, but always allows one complex to be bought (e.g. a maxdoor of 2 will allow a 5-door complex to be bought, if no door is owned yet)

Setting up
Every door in the same group will sync with each other. Any doors not in a group behave like usual. Door groups are saved per-map and between sessions. Once set up, you can forget about it!
Any Superadmin can set the group of doors using these commands:
/setgroup <group name>
Sets the group of the door you're looking at. Removes it, if no group name is given.
/getgroup
Prints the group of the door you're looking at.
/listgroups
Lists all door groups on this map.

Map Data
The configuration for each map is saved as a JSON file located in data/betterdoors/mapname.json
Instead of generating them yourself, you may paste them in there.

Premade config files can be found here[github.com] for:
Feel free to request more or submit your own!

GitHub
This addon is on GitHub[github.com]. Ask questions, report bugs and whatnot under issues[github.com] over there.
35 Comments
mozi_h  [author] Dec 2, 2024 @ 5:06am 
@AppleSFM use /setgroup without a group name to remove its group and have the door behave like default again.
Apple Dec 2, 2024 @ 2:47am 
how to remove the door?
mozi_h  [author] Jun 1, 2024 @ 6:37am 
@Walter White Saw your comment kinda late, but I added you so we can dm for more details.
camelCase May 22, 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 Jul 6, 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] Apr 14, 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 Apr 2, 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 Dec 9, 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] Dec 8, 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 Dec 8, 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