Skip to content

Full Config: Main Config ​

The complete configs/config.lua for Advanced Housing (sd-housing): debugging and the list of config files it loads.

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 config.lua

lua
-- Aggregate config root, loaded by both sides via `require 'configs.config'`.
-- Everything here is shared (client + server): nothing in it is a secret - who owns what lives in the database.
-- Three parts live in this one resource: the properties (who owns them, what they cost, who holds a key), the locks on
-- their doors, and the admin panel over both. The houses themselves are the walk-in pack's (sd-housing-interiors): the
-- panel imports them, and a property can also be made by hand anywhere, with doors picked from the world.
local config = {
    Debug = false, -- dev logging (cyan [sd-housing:*] lines); leave off in production

    -- Bridge diagnostics (bridge/shared/debug.lua): very verbose per-call prints from the
    -- framework/money bridge. Separate from Debug above so gameplay debugging doesn't drown
    -- in bridge traffic. DebugCategories filters by tag when set, e.g.
    -- { ['bridge:money'] = true } prints only that category.
    DebugPrints = false,
    -- DebugCategories = { ['bridge:money'] = true },

    Properties = require 'configs.shared.properties', -- buying, selling, keys, the entrance prompt, blips
    Realtor = require 'configs.shared.realtor', -- the listings: the agency's desk, realtors selling to a client, photos
    Doors = require 'configs.shared.doors', -- the locks: who may turn them, what a sale does to them, the prompt
    Points = require 'configs.shared.points', -- inside a property: the stash, the wardrobe, the garage
    Walkin = require 'configs.shared.walkin', -- importing the walk-in pack's houses: prices, names, garages
    Decor = require 'configs.shared.decor', -- decorating inside: furniture, walls, floors, stairs - who, where, what it costs
    Panel = require 'configs.shared.panel', -- the home panel on a wall inside: the property page on its screen
    Security = require 'configs.shared.security', -- the intercom, the alarm, breaking in; which phone and dispatch to use
    Safes = require 'configs.shared.safes', -- safes bought in decorate mode: combinations, tiers, what cracking one takes
    Interiors = require 'configs.shared.interiors', -- teleport properties: GTA interiors, shell packs, built shells; the Shell Creator
    Apartments = require 'configs.shared.apartments', -- apartment towers: flats sold at the front desk, a starter flat per character

    Admin = require 'configs.shared.admin', -- the /housingadmin panel
}

return config