Garry's Mod Leaks
Simple Properties
Submitted by Sn1xly, 18-03-2021, 06:50 PM, Thread ID: 200944
Thread Closed
Two modes:
Normal = properties(house/apartment etc) are bought from NPC, player then owns it(just like with keys). Co-owners are added from the NPC too. When the player leaves/sells in NPC, the house is available for someone else.
Timed = setting on how long time, like 1 real week - then when a player buys a house, he can disconnect and the house is still owned by him. Any co-owners will also be saved(but they can only use the door when the owner is online).
Why? _it's a nice feature for players to easily see all available housing options, you can create different sellers like "Luxury Houses", "General Apartments" and so on, and then players easily can find a house in their price range. _
The server owner can set up NPCs with different names/models/positions, and set up properties using the admin tool, selecting doors which belong to a property(like all doors of an apartment), put a price + name and then add it to one or more of the NPCs.
if anything is confusing you are very welcome to add me
Features:
- Easy to use, fully ingame admin system
- Allows you to setup a camera position for the preview of the property being bought
- Configure the price of the property and add it to one or more NPCs
- Everything saves through restarts
- Limit properties(different ranks can own different many properties)
- Limit access to NPCs by rank(make some properties only purchaseable by specific ranks)
- Key marker icon to help locate house
- Properties can stay over time(stay through disconnect), like a property is owned for X real life time
- Search/sort menu
- If using timed properties this is displayed in the dealer menu(s) and the owner can extend ownage
- Add/Delete co-owner in the dealer menu(which also stays if using timed properties)
- You can set up the preview inside an apartment, maybe use permanent props inside, to make a nice view - and in the config, disable drawing of players/printers and other entities
A property consists of a name(like Apartment #1) and door IDs.
How to use:
- To add a property, select the admin gun from Q > Weapons > Simple Properties.
- Left clicking on a door will place it in the active door group(shown in green).
- Left clicking on a green door will remove it from the door group.
- Left click on all the doors that belongs to the property you want to add,
- then left click somewhere (not on a door) to set the camera position for the property.
- Right click with the admin gun to open the menu to save the property.
- Once you have saved a property, it's ready to be placed in an NPC.
Left click on the NPC with the admin gun to change:
model, name, rank restrictions, properties for sale.
To manage timed properties(unown for people): !sprop
Example pictures taken from Near Reality Gaming: 95.172.92.22:27015
Part of the code is streamed which also allows small automatic fixes, and it will let you know if there is a new version available for download. Server console will on startup print recent fixes
RE: Simple Properties
22-03-2021, 08:39 AM
#2 It is tested and this is, actually, a pretty cool addon, not only for darkrp, but for militaryRP in some instances.
RE: Simple Properties
22-03-2021, 11:33 AM
#3 I checked everything seems to be working. You helped me so much.
Users browsing this thread: 1 Guest(s)