Full Config: Properties
The complete configs/shared/properties.lua for Advanced Housing (sd-housing): the payment account, ownership limit, sell-back share, keys, the property page, the entrance prompt, the doorbell and blips.
TIP
See the configuration guide for what each file controls. Download this file as a reference, and merge changes with the config shipped in your installed version.
Download shared/properties.lua
lua
-- The properties: what buying one takes, what selling one gives back, keys, and how they show in the world.
return {
Account = 'bank', -- the account a property is paid from and a sale paid into ('bank' or 'cash')
MaxOwned = 3, -- how many properties one character may own at once (a garage that comes with a house does not count); 0 = no limit
SellBack = 0.6, -- share of the price paid back when an owner sells to the market (0.6 = 60 %); 0 turns selling off
MaxKeys = 6, -- keys an owner may hand out per property, besides their own
-- The property page: an owner's keys (who holds one, what each opens, for how long), the locks, what is inside, the
-- activity at the door, giving it away and selling it. A keyholder sees the property and their own key.
-- It is on the home panel inside every house (configs/shared/panel.lua); from anywhere, open it with the command, or
-- from your own radial / phone with exports['sd-housing']:OpenPropertyMenu(id?).
Manage = {
Command = false, -- a command that opens the page anywhere ('property'); false = the home panel (and the export) only
Radial = false, -- true: an item on ox_lib's radial menu opens it, while you own or hold a key to something
Range = 30.0, -- metres from a property's entrance that count as being at it (placing a stash, decorating, its locks)
RemoteLocks = false, -- true: turn a property's locks from the page wherever you are; false: only while at it
LogLocks = true, -- every lock turned by its owner or a keyholder goes in the property's activity
DefaultPerms = { 'doors', 'stash', 'wardrobe', 'garage' }, -- what a new key opens until the owner says otherwise
-- How long a key can be lent for, in seconds (0 = until taken back). The page offers these, in this order.
KeyDurations = { 3600, 86400, 604800, 0 },
},
-- The prompt at a property's entrance (its porch, or where the admin stood when they made it).
Interact = {
Distance = 1.6, -- metres from the entrance the prompt shows
Key = 38, -- control that opens it (38 = E)
},
-- Someone without a key can ring: the owner and keyholders who are on are told who is at which door.
Doorbell = {
Enabled = true,
Cooldown = 20, -- seconds between rings from one player
},
Blips = {
Owned = { Sprite = 40, Color = 2, Scale = 0.75 }, -- your own properties (and the ones you hold a key to)
ForSale = false, -- every property for sale on the map too: { Sprite = 374, Color = 0, Scale = 0.6 }
},
}