Skip to content

Configuration ​

Settings are split by feature. configs/config.lua loads one file per feature from configs/shared/. Every file is shared between client and server and has a complete downloadable reference under Full Config Files in the sidebar.

Config Map ​

FileRead asControlsReference
configs/config.luaconfigDebug logging, bridge diagnostics and the list of files below.Main config
configs/shared/properties.luaconfig.PropertiesPayment account, ownership limit, sell-back share, keys, the property page, the entrance prompt, the doorbell and blips.Properties
configs/shared/realtor.luaconfig.RealtorAgency name, where players may buy, the agency desk, the realtor job, the agency page and listing photos.Realtor
configs/shared/doors.luaconfig.DoorsThe lock prompt, lock sounds, what a sale does to the locks, forcing a lock, the battering ram and garage door prompts.Doors
configs/shared/points.luaconfig.PointsStash, wardrobe and garage.Points
configs/shared/walkin.luaconfig.WalkinImporting the walk-in pack: prices, garages and regions.Walk-in houses
configs/shared/apartments.luaconfig.ApartmentsTowers, flat prices, starter flats, the front desk, the peephole and /apartment.Apartments
configs/shared/interiors.luaconfig.InteriorsTeleport properties: routing buckets, GTA interiors, shell models and the Shell Creator.Interiors
configs/shared/panel.luaconfig.PanelThe home panel, its screen, notes, cameras and the mailbox.Home panel
configs/shared/security.luaconfig.SecurityPhone, dispatch, police jobs, intercom, alarm and burglary.Security
configs/shared/safes.luaconfig.SafesSafe tiers, combinations, cracking and the safes for sale.Safes
configs/shared/decor.luaconfig.DecorWho may decorate, limits, refunds, the build camera and every price in decorate mode.Decorating
configs/shared/catalog.luaThe furniture catalogue: categories, labels and prices.Furniture catalogue
configs/shared/admin.luaconfig.AdminThe admin command and its permissions.Admin

Applying Changes ​

Edit the file, then restart sd-housing. It streams nothing itself, so it can be restarted with players on. Changes made in the admin panel (prices, owners, regions, doors) are saved to the database and apply live.

Common Changes ​

GoalSetting
Pay with cash instead of bankAccount = 'cash' in properties.lua. Decor has its own Account in decor.lua.
Change how many properties a character may ownMaxOwned in properties.lua. 0 is no limit.
Turn selling back to the market offSellBack = 0 in properties.lua.
Add a /property commandManage.Command = 'property' in properties.lua. It is false by default.
Add the property page to the ox_lib radial menuManage.Radial = true in properties.lua.
Let players turn locks from anywhereManage.RemoteLocks = true in properties.lua.
Only realtors sell housesBuy.Door = false and Buy.Office = false in realtor.lua.
Move the agency deskOffice.Locations in realtor.lua.
Use the ox_lib text UI for locksPrompt = 'textui' in doors.lua.
Let police force a lockForceJobs = { police = 2 } in doors.lua.
Change house pricesPricePerSqm, MinPrice and RoundTo in walkin.lua. Prices are set on import.
Open or close areas of walk-in housesRegions in walkin.lua, or the admin panel's Overview.
Turn starter flats offStarter.Enabled = false in apartments.lua.
Use another clothing resourceWardrobe.Event in points.lua.
Name the phone or dispatchPhone and Dispatch in security.lua. 'auto' picks the first that runs.
Require police for break-insBurglary.MinPolice in security.lua.
Let keyholders decorateKeyholders = true in decor.lua.
Remove the /decorate commandCommand = false in decor.lua. Decorating then opens from the home panel only.
Allow more picture hostsPictures.Hosts in decor.lua.

Main Config ​

OptionDefaultDescription
DebugfalseDev logging. Leave off in production.
DebugPrintsfalseVerbose prints from the framework and money bridge.
DebugCategoriesnot setFilters bridge prints by tag, for example { ['bridge:money'] = true }.

Properties ​

OptionDefaultDescription
Account'bank'The account a property is paid from and a sale is paid into. 'bank' or 'cash'.
MaxOwned3Properties one character may own at once. A garage that comes with a house does not count. 0 is no limit.
SellBack0.6Share of the price paid back when an owner sells to the market. 0 turns selling off.
MaxKeys6Keys an owner may hand out per property.
Manage.CommandfalseA command that opens the property page anywhere.
Manage.RadialfalseAdds the property page to the ox_lib radial menu.
Manage.Range30.0Metres from the entrance that count as being at the property.
Manage.RemoteLocksfalseTurn locks from the page wherever you are.
Manage.LogLockstrueEvery lock turned goes in the property's activity.
Manage.DefaultPerms{ 'doors', 'stash', 'wardrobe', 'garage' }What a new key opens.
Manage.KeyDurations{ 3600, 86400, 604800, 0 }How long a key can be lent for, in seconds. 0 is until taken back.
Interact.Distance / Interact.Key1.6 / 38The entrance prompt: distance in metres and control (38 is E).
Doorbell.Enabled / Doorbell.Cooldowntrue / 20The doorbell and the seconds between rings from one player.
Blips.Owned{ Sprite = 40, Color = 2, Scale = 0.75 }Blip for your own properties and the ones you hold a key to.
Blips.ForSalefalseA blip table to show every property for sale on the map.

Points ​

OptionDefaultDescription
Distance / Key1.4 / 38The stash and wardrobe prompt.
OwnersPlacetrueOwners may place their own stash and wardrobe.
PlaceRange30.0Metres from the entrance an owner may place one.
Stash.Slots / Stash.Weight50 / 250000One shared stash per property (ox_inventory). Weight in grams.
Wardrobe.Event'illenium-appearance:client:openOutfitMenu'The client event that opens your clothing resource's wardrobe.
Garage.EnabledtrueOne garage per property with a garage point (qbx_garages).
Garage.Sharedfalsetrue: everyone with a key sees every vehicle parked there.
Garage.VehicleType'car'The garage's vehicle type.

Admin ​

OptionDefaultDescription
Command'housingadmin'The command that opens the panel.
Group'group.admin'Ace principal with full access.
ViewGroupfalseOptional principal (for example 'group.mod') that can open the panel and look, but not change anything.
EditAce'sd_housing.edit'The ace every change needs.
OpenAnyDoortrueWhoever holds the edit ace may turn any lock in the world.
LogLimit300Log entries the panel's Log tab loads.
RefreshMs4000Milliseconds between refreshes while the panel is open.

The other files are covered on their feature pages: Realtor, Keys & Locks, Walk-in Houses, Apartment Towers, Home Panel, Security, Decorating and Teleport Properties.

Language ​

Text is in locales/en.json and loaded through ox_lib. Add a translation file beside it and set the server's ox:locale convar to use it.