Garry's Mod
88 evaluări
Better Doors - Group DarkRP Doors
   
Premiază
Adaugă la preferate
Preferat
Elimină din preferate
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay
Dimensiunea fișierului
Postat
Actualizat
11.556 KB
15 apr. 2020 la 20:44
6 mai 2021 la 9:57
10 jurnale de actualizare ( vizionare )

Abonează-te pentru a descărca
Better Doors - Group DarkRP Doors

Descriere
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 comentarii
mozi_h  [autor] 2 dec. 2024 la 5:06 
@AppleSFM use /setgroup without a group name to remove its group and have the door behave like default again.
Apple 2 dec. 2024 la 2:47 
how to remove the door?
mozi_h  [autor] 1 iun. 2024 la 6:37 
@Walter White Saw your comment kinda late, but I added you so we can dm for more details.
Pascal Case 22 mai 2024 la 13:32 
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 iul. 2023 la 11:15 
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  [autor] 14 apr. 2023 la 16:23 
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 la 12:15 
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 la 0:59 
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  [autor] 8 dec. 2022 la 15:06 
@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 la 11:14 
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