Skip to content

Spawn: config files ​

These files stay readable in every build (escrow too), so you can change them. Shown as shipped in version 1.0.3.

shared/config.lua ​

lua
QB = {}

QB.Spawns = {
    ["policedp"] = {
        coords = vector4(426.3291, -977.9847, 30.709783, 87.453323),
        location = "policedp",
        label = "MRPD",
    },
    ["motel"] = {
        coords = vector4(325.93933, -209.1675, 54.086292, 151.20381),
        location = "motel",
        label = "Motels",
    },
    ["sandyshores"] = {
        coords = vector4(1778.7125, 3336.7299, 41.108406, 302.15869),
        location = "sandyshores",
        label = "Sandy Shores"
    },
    ["sandypd"] = {
        coords = vector4(1861.2784, 3676.1477, 33.620258, 215.21972),
        location = "sandypd",
        label = "Sandy Sheriff",
    },
    ["davispd"] = {
        coords = vector4(393.70266, -1617.154, 29.29194, 327.42037),
        location = "davispd",
        label = "Davis PD",
    },
    ["amusementpark"] = {
        coords = vector4(-1598.528, -1039.563, 13.018366, 322.03799),
        location = "amusementpark",
        label = "Amusement Park",
    },
    ["paleto2"] = {
        coords = vector4(-427.0372, 6029.267, 31.490116, 302.64971),
        location = "paleto2",
        label = "Paleto Bay",
    },
}

QB.SpawnAccess = { -- Set to false to hide the button in the spawn UI
    ['apartments'] = true,  -- Requires qb-apartments; set false on vanilla QBCore
    ['houses'] = true,      -- Supports lumo-housing, qb-houses, qs-housing, and ps-housing
    ['lastLoc'] = true,
}

Config = {
    Debug = false,
    -- QBCore, Qbox and ESX are detected automatically; with none running the
    -- script runs standalone. To force one, edit bridge/config.lua (built in;
    -- the lumo-bridge resource is not needed).
    SpawnEditor = {
        Enabled = true,
        UseDatabase = true,
        SaveOnStart = true,
        Command = "spawneditor",
        AdminGroups = { "god", "admin" },
        -- Upgrading from a build that used `qb_spawn_locations`? Run
        -- sql/migrate-qb_spawn_locations.sql once; it renames the table and keeps your saved
        -- spawn points. Fresh installs just get this table created for them.
        Table = "spawn_locations"
    },
    -- Optional overrides. Return nil from CustomPermission to fall through to
    -- the framework's own admin check; return true/false to decide it yourself.
    CustomPermission = nil,
    -- Set to a function(source, message, type) to route notifications through
    -- your own system instead of the framework's.
    CustomNotify = nil,
}

-- Standalone (no framework) without lumo-multicharacter: this script opens
-- by itself when the player joins and remembers where they logged off.
-- With lumo-multicharacter (or any framework) running, this does nothing.
Config.Standalone = {
    OpenOnJoin = true,
    -- Ped used when the session starts on a non-freemode ped.
    DefaultModel = "mp_m_freemode_01",
}

Config.House = "qb" -- Supports lumo-housing, qb-houses, and qs-housing. Set to "custom" for ps-housing.

-- Optional: share theme settings when lumo-ui is installed. Not a dependency.
Config.SyncLumoUI = true

bridge/config.lua ​

lua
--- lumo-spawn — framework settings
---
--- QBCore, Qbox and ESX are detected automatically; with none of them running
--- the script runs standalone. Most servers never touch this file. The rest
--- of the settings live in shared/config.lua.
---
--- This folder (bridge/) is the script's built-in framework layer. You do NOT
--- need the separate lumo-bridge resource.

LumoBridgeConfig = {
    --- 'auto' | 'qb' | 'qbx' | 'esx' | 'standalone' | 'custom'
    ---   auto       — Qbox (qbx_core) > QBCore (qb-core) > ESX (es_extended) > Fallback
    Framework = 'auto',

    --- Used by 'auto' when no core is running. 'standalone' = no framework.
    --- Set 'custom' only if you wire your own core in Custom below.
    Fallback = 'standalone',

    --- Print the detected framework and every unresolved call to the console.
    Debug = false,

    --- Resource names, in case yours are renamed.
    Resources = {
        qb  = 'qb-core',
        qbx = 'qbx_core',
        esx = 'es_extended',
        oxlib = 'ox_lib',
    },

    --- How long a server callback waits for its answer before giving up (ms).
    CallbackTimeout = 15000,

    --- Standalone (no framework). lumo-multicharacter owns the characters when
    --- it runs; without it every player gets one session keyed by their
    --- Rockstar licence and their last position is remembered.
    Standalone = {
        OwnsCharacters = false,             -- keep false in this script
        CharacterResource = 'lumo-multicharacter',
        SaveInterval = 60000,               -- position save without a character script, ms
        RememberPosition = true,
        SetPedModel = true,
    },

    --- Resources that run the new-character sequence themselves.
    StartingApartmentResources = {
        'qbx_properties',
        'qbx_apartments',
        'ps-housing',
    },

    --- Only for Framework = 'custom'. See docs/CUSTOM-FRAMEWORKS.md.
    Custom = {
        client = {},
        server = {},
    },
}