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
| File | Read as | Controls | Reference |
|---|---|---|---|
configs/config.lua | config | Debug logging, bridge diagnostics and the list of files below. | Main config |
configs/shared/properties.lua | config.Properties | Payment account, ownership limit, sell-back share, keys, the property page, the entrance prompt, the doorbell and blips. | Properties |
configs/shared/realtor.lua | config.Realtor | Agency name, where players may buy, the agency desk, the realtor job, the agency page and listing photos. | Realtor |
configs/shared/doors.lua | config.Doors | The 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.lua | config.Points | Stash, wardrobe and garage. | Points |
configs/shared/walkin.lua | config.Walkin | Importing the walk-in pack: prices, garages and regions. | Walk-in houses |
configs/shared/apartments.lua | config.Apartments | Towers, flat prices, starter flats, the front desk, the peephole and /apartment. | Apartments |
configs/shared/interiors.lua | config.Interiors | Teleport properties: routing buckets, GTA interiors, shell models and the Shell Creator. | Interiors |
configs/shared/panel.lua | config.Panel | The home panel, its screen, notes, cameras and the mailbox. | Home panel |
configs/shared/security.lua | config.Security | Phone, dispatch, police jobs, intercom, alarm and burglary. | Security |
configs/shared/safes.lua | config.Safes | Safe tiers, combinations, cracking and the safes for sale. | Safes |
configs/shared/decor.lua | config.Decor | Who may decorate, limits, refunds, the build camera and every price in decorate mode. | Decorating |
configs/shared/catalog.lua | The furniture catalogue: categories, labels and prices. | Furniture catalogue | |
configs/shared/admin.lua | config.Admin | The 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
| Goal | Setting |
|---|---|
| Pay with cash instead of bank | Account = 'cash' in properties.lua. Decor has its own Account in decor.lua. |
| Change how many properties a character may own | MaxOwned in properties.lua. 0 is no limit. |
| Turn selling back to the market off | SellBack = 0 in properties.lua. |
Add a /property command | Manage.Command = 'property' in properties.lua. It is false by default. |
| Add the property page to the ox_lib radial menu | Manage.Radial = true in properties.lua. |
| Let players turn locks from anywhere | Manage.RemoteLocks = true in properties.lua. |
| Only realtors sell houses | Buy.Door = false and Buy.Office = false in realtor.lua. |
| Move the agency desk | Office.Locations in realtor.lua. |
| Use the ox_lib text UI for locks | Prompt = 'textui' in doors.lua. |
| Let police force a lock | ForceJobs = { police = 2 } in doors.lua. |
| Change house prices | PricePerSqm, MinPrice and RoundTo in walkin.lua. Prices are set on import. |
| Open or close areas of walk-in houses | Regions in walkin.lua, or the admin panel's Overview. |
| Turn starter flats off | Starter.Enabled = false in apartments.lua. |
| Use another clothing resource | Wardrobe.Event in points.lua. |
| Name the phone or dispatch | Phone and Dispatch in security.lua. 'auto' picks the first that runs. |
| Require police for break-ins | Burglary.MinPolice in security.lua. |
| Let keyholders decorate | Keyholders = true in decor.lua. |
Remove the /decorate command | Command = false in decor.lua. Decorating then opens from the home panel only. |
| Allow more picture hosts | Pictures.Hosts in decor.lua. |
Main Config
| Option | Default | Description |
|---|---|---|
Debug | false | Dev logging. Leave off in production. |
DebugPrints | false | Verbose prints from the framework and money bridge. |
DebugCategories | not set | Filters bridge prints by tag, for example { ['bridge:money'] = true }. |
Properties
| Option | Default | Description |
|---|---|---|
Account | 'bank' | The account a property is paid from and a sale is paid into. 'bank' or 'cash'. |
MaxOwned | 3 | Properties one character may own at once. A garage that comes with a house does not count. 0 is no limit. |
SellBack | 0.6 | Share of the price paid back when an owner sells to the market. 0 turns selling off. |
MaxKeys | 6 | Keys an owner may hand out per property. |
Manage.Command | false | A command that opens the property page anywhere. |
Manage.Radial | false | Adds the property page to the ox_lib radial menu. |
Manage.Range | 30.0 | Metres from the entrance that count as being at the property. |
Manage.RemoteLocks | false | Turn locks from the page wherever you are. |
Manage.LogLocks | true | Every 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.Key | 1.6 / 38 | The entrance prompt: distance in metres and control (38 is E). |
Doorbell.Enabled / Doorbell.Cooldown | true / 20 | The 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.ForSale | false | A blip table to show every property for sale on the map. |
Points
| Option | Default | Description |
|---|---|---|
Distance / Key | 1.4 / 38 | The stash and wardrobe prompt. |
OwnersPlace | true | Owners may place their own stash and wardrobe. |
PlaceRange | 30.0 | Metres from the entrance an owner may place one. |
Stash.Slots / Stash.Weight | 50 / 250000 | One 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.Enabled | true | One garage per property with a garage point (qbx_garages). |
Garage.Shared | false | true: everyone with a key sees every vehicle parked there. |
Garage.VehicleType | 'car' | The garage's vehicle type. |
Admin
| Option | Default | Description |
|---|---|---|
Command | 'housingadmin' | The command that opens the panel. |
Group | 'group.admin' | Ace principal with full access. |
ViewGroup | false | Optional 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. |
OpenAnyDoor | true | Whoever holds the edit ace may turn any lock in the world. |
LogLimit | 300 | Log entries the panel's Log tab loads. |
RefreshMs | 4000 | Milliseconds 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.
