Garry's Mod

Garry's Mod

84 arvostelua
Better Doors - Group DarkRP Doors
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: Tool
Addon Tags: Roleplay
Tiedostokoko
Julkaistu
Päivitetty
11.556 KB
15.4.2020 klo 20.44
6.5.2021 klo 9.57
10 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Better Doors - Group DarkRP Doors

Kuvaus
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 kommenttia
mozi_h  [tekijä] 1.6. klo 6.37 
@Walter White Saw your comment kinda late, but I added you so we can dm for more details.
camelCase 22.5. klo 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.7.2023 klo 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  [tekijä] 14.4.2023 klo 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.4.2023 klo 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.12.2022 klo 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  [tekijä] 8.12.2022 klo 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.12.2022 klo 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
mozi_h  [tekijä] 19.6.2022 klo 13.02 
@[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.6.2022 klo 3.21 
How do I enter the commands in my server console? If I do this it says "Unknown command: /setgroup"