Garry's Mod Leaks

Junk [LEAK] [V2] Simple Properties [sell houses from NPC]

Submitted by Superchet, , Thread ID: 86291

Thread Closed
27-04-2018, 11:54 PM
#1
This addon disables the ability to buy (configured) doors the old way(using keys on the door), and instead, they have to be purchased from NPCs.
Version 2: configuration now allows properties to be bought an owned for real time, like one real week. With this setting on, a player can buy a house, disconnect, and the house will remain owned by the player.
_ (version 1) Youtube Video Here _
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

https://www.gmodstore.com/scripts/view/4040


DOWNLOAD

http://www.mediafire.com/file/y929qsv3qa...erties.rar

Users browsing this thread: 1 Guest(s)