Garry's Mod

Garry's Mod

84 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
15 Apr, 2020 @ 8:44pm
6 May, 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.
33 Comments
mozi_h  [author] 1 Jun @ 6:37am 
@Walter White Saw your comment kinda late, but I added you so we can dm for more details.
camelCase 22 May @ 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.
[MG] 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"