Garry's Mod Leaks

Simple Properties

Submitted by Sn1xly, , Thread ID: 200944

Thread Closed
18-03-2021, 06:50 PM
#1
Content locked
This content has been locked. Please login or register in order to unlock it.


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:
  1. Easy to use, fully ingame admin system
  2. Allows you to setup a camera position for the preview of the property being bought
  3. Configure the price of the property and add it to one or more NPCs
  4. Everything saves through restarts
  5. Limit properties(different ranks can own different many properties)
  6. Limit access to NPCs by rank(make some properties only purchaseable by specific ranks)
  7. Key marker icon to help locate house
  8. Properties can stay over time(stay through disconnect), like a property is owned for X real life time
  9. Search/sort menu
  10. If using timed properties this is displayed in the dealer menu(s) and the owner can extend ownage
  11. Add/Delete co-owner in the dealer menu(which also stays if using timed properties)
  12. 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
How it works:
A property consists of a name(like Apartment #1) and door IDs.

How to use:
  1. To add a property, select the admin gun from Q > Weapons > Simple Properties.
  2. Left clicking on a door will place it in the active door group(shown in green).
  3. Left clicking on a green door will remove it from the door group.
  4. Left click on all the doors that belongs to the property you want to add,
  5. then left click somewhere (not on a door) to set the camera position for the property.
  6. Right click with the admin gun to open the menu to save the property.
  7. Once you have saved a property, it's ready to be placed in an NPC.
To add NPCs, spawn an NPC from Q > Entities > Simple Properties.

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

Users browsing this thread: 1 Guest(s)