-- Teleport properties: a property whose inside is not where its front door is. Its door outside is an entrance you walk
-- up to and go in at; inside, everyone in that property is in a world of its own (a routing bucket per property), so one
-- interior serves any number of properties. Three kinds of inside:
--   ipl    one of GTA's own interiors (an apartment, a stilt house, an executive penthouse): Ipl below
--   shell  a shell model from a shell pack (K4MB1, Jamaring, ...), spawned where the property's shell stands: Shells
--   build  a shell built in the Shell Creator (/shellcreator): its walls, floors, stairs and furniture are the property's
--          own decor, laid at its slot when the property was made - the owner can rebuild it in decorate mode
-- (An MLO property - a walk-in house, or doors picked in the world - is entered where it stands, as before.)
return {
    Enabled = true,

    -- Each property in its own world while inside: routing bucket = BucketBase + the property's id.
    BucketBase = 41000,
    -- Admins setting a property up (choosing where its inside starts) work in a bucket of their own: this + their id.
    AdminBucketBase = 46000,

    -- Where shells and built interiors stand: out of the way, high over the ocean (no terrain to shade them, nothing
    -- under them to fall onto but their own floor), a slot per property on a grid Spacing metres apart.
    ShellOrigin = vector3(-6800.0, -6800.0, 1200.0),
    ShellSpacing = 160.0,
    ShellPerRow = 40,

    -- The entrance and the way out: how near the prompt shows, how long the screen fades.
    PromptDistance = 1.6,
    FadeMs = 450,
    -- (a door with no lock on it lets anyone in; a locked one only its owner, its keyholders, the police with a warrant
    -- (Security), admins - and anyone the owner lets in from the intercom)

    -- ---- GTA's interiors -------------------------------------------------------------------------------------------
    -- interior: the game's interior id (bob74_ipl's, stable for a game build); coords: a point inside it (where it is
    -- looked for, and the fallback). themes: the interior is one of several, each its own IPL at the same place - only
    -- the property's own is switched on, for whoever is inside it. clutter: the entity sets an Online flat comes with
    -- (bottles, ashtrays, stripper poles): a property shows them only when it says so (look.clutter).
    -- tier: low | mid | high | luxury (the create page's filter); price: what a property of it is suggested at.
    Ipl = {
        low_apartment = { label = 'Low-end apartment', tier = 'low', price = 65000, interior = 149761, coords = vector3(261.4586, -998.8196, -99.00863) },
        mid_apartment = { label = 'Mid-range apartment', tier = 'mid', price = 140000, interior = 148225, coords = vector3(347.2686, -999.2955, -99.19622) },

        integrity_30 = { label = '4 Integrity Way, Apt 30', tier = 'high', price = 420000, interior = 141313, coords = vector3(-35.31277, -580.4199, 88.71221), clutter = 'hi' },
        majestic_2 = { label = 'Richard Majestic, Apt 2', tier = 'high', price = 395000, interior = 146177, coords = vector3(-915.811, -379.432, 113.6748), clutter = 'hi' },
        -- (tinsel_42 is gone too, 2026-11-10: Tinsel Towers is the third tower)
        -- (delperro_4 and delperro_7 too, 2026-11-10: Del Perro Heights is the fourth)
        -- (eclipse_3 and the three Eclipse penthouses are gone, 2026-11-09: Eclipse Towers is sd-housing-towers' second
        -- tower and its own floors stand where GTA Online's interiors were - their ymaps are streamed over empty)
        integrity_28 = { label = '4 Integrity Way, Apt 28', tier = 'high', price = 415000, interior = 147201, coords = vector3(-18.07856, -583.6725, 79.46569), clutter = 'hi' },

        wild_oats = { label = '3655 Wild Oats Drive', tier = 'luxury', price = 720000, interior = 207105, coords = vector3(-169.286, 486.4938, 137.4436), clutter = 'hi' },
        conker_2044 = { label = '2044 North Conker Avenue', tier = 'luxury', price = 690000, interior = 206081, coords = vector3(340.9412, 437.1798, 149.3925), clutter = 'hi' },
        conker_2045 = { label = '2045 North Conker Avenue', tier = 'luxury', price = 695000, interior = 206337, coords = vector3(373.023, 416.105, 145.7006), clutter = 'hi' },
        hillcrest_2862 = { label = '2862 Hillcrest Avenue', tier = 'luxury', price = 705000, interior = 208129, coords = vector3(-676.127, 588.612, 145.1698), clutter = 'hi' },
        hillcrest_2868 = { label = '2868 Hillcrest Avenue', tier = 'luxury', price = 700000, interior = 207617, coords = vector3(-763.107, 615.906, 144.1401), clutter = 'hi' },
        hillcrest_2874 = { label = '2874 Hillcrest Avenue', tier = 'luxury', price = 715000, interior = 207361, coords = vector3(-857.798, 682.563, 152.6529), clutter = 'hi' },
        whispymound = { label = '2677 Whispymound Drive', tier = 'luxury', price = 685000, interior = 206593, coords = vector3(120.5, 549.952, 184.097), clutter = 'hi' },
        mad_wayne = { label = '2133 Mad Wayne Thunder Drive', tier = 'luxury', price = 680000, interior = 208385, coords = vector3(-1288.0, 440.748, 97.69459), clutter = 'hi' },

        franklin_aunt = { label = 'Forum Drive bungalow', tier = 'low', price = 90000, interior = 197889, coords = vector3(-14.3, -1438.6, 31.1) },
        floyd = { label = 'Vespucci Beach apartment', tier = 'mid', price = 150000, interior = 171777, coords = vector3(-1150.7, -1520.7, 10.6) },
        trevor_trailer = { label = 'Sandy Shores trailer', tier = 'low', price = 45000, interior = 2562, coords = vector3(1973.0, 3818.0, 33.4) },
        franklin_vinewood = { label = 'Whispymound hillside villa', tier = 'luxury', price = 650000, interior = 206849, coords = vector3(7.0, 528.0, 175.0) },
        michael = { label = 'Rockford Hills mansion', tier = 'luxury', price = 1200000, interior = 166657, coords = vector3(-806.0, 175.0, 72.8) },
    },
    -- the entity sets an Online flat comes with, by `clutter`: none are shown unless the property's look says
    Clutter = {
        hi = {
            strip = { 'Apart_Hi_Strip_A', 'Apart_Hi_Strip_B', 'Apart_Hi_Strip_C' },
            booze = { 'Apart_Hi_Booze_A', 'Apart_Hi_Booze_B', 'Apart_Hi_Booze_C' },
            smoke = { 'Apart_Hi_Smokes_A', 'Apart_Hi_Smokes_B', 'Apart_Hi_Smokes_C' },
        },
    },

    -- ---- Shell models (shell packs) --------------------------------------------------------------------------------
    -- Any model listed whose pack is installed (streamed by a running resource) shows on the create page; the rest are
    -- greyed out there. entry: where one stands inside, relative to the model's origin - its feet (x, y, z, heading);
    -- the admin can set it again inside when making a property. tier and price as for Ipl.
    -- (K4MB1's starter shells, the free pack: start a resource streaming them - ps-housing's stream folder has them -
    -- and they light up. The archetype pool here is full, so packs are left off by default.)
    Shells = {
        standardmotel_shell = { label = 'Motel room', tier = 'low', price = 30000, entry = vector4(-0.47, -2.45, -2.55, 268.4) },
        modernhotel_shell = { label = 'Modern hotel room', tier = 'low', price = 45000, entry = vector4(4.99, 4.36, -1.81, 187.0) },
        container_shell = { label = 'Shipping container', tier = 'low', price = 20000, entry = vector4(0.12, -5.74, -2.20, 359.3) },
        shell_trailer = { label = 'Trailer', tier = 'low', price = 35000, entry = vector4(-1.33, -2.03, -2.47, 358.1) },
        shell_v16low = { label = 'Low-end flat', tier = 'low', price = 55000, entry = vector4(4.72, -6.34, -3.64, 358.1) },
        shell_v16mid = { label = 'Mid-range flat', tier = 'mid', price = 120000, entry = vector4(1.44, -14.20, -2.48, 359.5) },
        furnitured_midapart = { label = 'Furnished apartment', tier = 'mid', price = 135000, entry = vector4(1.41, -10.34, -2.51, 2.6) },
        shell_frankaunt = { label = 'Bungalow', tier = 'mid', price = 110000, entry = vector4(-0.34, -5.88, -2.56, 358.1) },
        shell_trevor = { label = 'Desert trailer house', tier = 'low', price = 60000, entry = vector4(0.23, -3.78, -2.40, 358.8) },
        shell_ranch = { label = 'Ranch house', tier = 'mid', price = 210000, entry = vector4(-1.22, -5.44, -3.09, 271.8) },
        shell_michael = { label = 'Family mansion', tier = 'luxury', price = 650000, entry = vector4(-9.52, 5.58, -6.05, 270.9) },
        shell_office1 = { label = 'Small office', tier = 'mid', price = 90000, entry = vector4(1.26, 5.03, -1.72, 186.2) },
        shell_store1 = { label = 'Shop unit', tier = 'mid', price = 95000, entry = vector4(-2.68, -4.66, -2.61, 355.6) },
        shell_garagem = { label = 'Garage', tier = 'low', price = 40000, entry = vector4(13.86, 1.76, -2.74, 87.0) },
        shell_warehouse1 = { label = 'Warehouse', tier = 'mid', price = 160000, entry = vector4(-8.86, 0.12, -2.94, 273.1) },
        classichouse_shell = { label = 'Classic house', tier = 'mid', price = 240000, entry = vector4(4.76, -2.05, -5.37, 92.8) },
        shell_highend = { label = 'High-end villa', tier = 'luxury', price = 720000, entry = vector4(-22.29, -0.32, 5.22, 270.3) },
        shell_highendv2 = { label = 'High-end villa II', tier = 'luxury', price = 760000, entry = vector4(-10.52, 0.90, -0.06, 268.2) },
    },

    -- ---- The Shell Creator (/shellcreator) ---------------------------------------------------------------------------
    -- Interiors built in the game from decorate mode's pieces (walls with doors, floors, stairs, light fittings,
    -- furniture), from a template or from nothing, each in a workshop of its own - then published, and picked on the
    -- admin page as a property's inside (each property gets its own copy, its owner free to rebuild it).
    Creator = {
        Enabled = true,
        Command = 'shellcreator',
        Ace = 'sd_housing.creator', -- may build shells (admins - config.Admin.EditAce - always may)
        Jobs = { realestate = 0 }, -- and these jobs, from this grade (false: none)
        OnDuty = true, -- (a job only while on duty)
        MaxShells = 25, -- per author (admins: no limit)
        WorkshopHalf = 40.0, -- metres from a workshop's middle it may be built out to (an 80 x 80 m plot)
        Key = 'F7', -- in a workshop: the creator's tools (rebindable: Settings > Key Bindings > FiveM)
    },
}
