Configuration

This section includes all configurable files for the selected script. Most settings are configured automatically, but each config.lua file contains a header comment explaining the purpose and usage of every configuration type. Be sure to read the header of each file carefully to fully understand how to customize and adapt the system for QBCORE, ESX, or standalone environments, ensuring seamless integration with your server.


qs-backrooms/config
Config = {}

--[[
    Framework configuration and scripts of your server!
    In the following configurations you will see the mandatory scripts that
    you should configure in your new housing system, as inventory for the
    stashes, clothing for your wardrobes, synchronization system of
    weather and climate, menu systems, and much more.

    Remember that most of these settings are freely modifiable.
    inside client/custom/*, but I'll give you the options that you have by default:

    Framework:
        'esx'
        'qb'

]]

local frameworks = {
    ['es_extended'] = 'esx',
    ['qb-core'] = 'qb',
    ['qbx_core'] = 'qb'
}

local function dependencyCheck(data)
    for k, v in pairs(data) do
        if GetResourceState(k):find('started') ~= nil then
            return v
        end
    end
    return false
end

Config.Framework = dependencyCheck(frameworks)

--[[
    Remember that most of these settings are freely modifiable.
    inside client/custom/*, but I'll give you the options that you have by default:

    AmbulanceJob:
        'qs-hospital-creator'
        'esx_ambulancejob'
        'qb-ambulancejob'
        'wasabi_ambulance'
]]

local ambulances = {
    ['qs-hospital-creator'] = 'qs-hospital-creator',
    ['esx_ambulancejob'] = 'esx_ambulancejob',
    ['qb-ambulancejob'] = 'qb-ambulancejob',
    ['wasabi_ambulance'] = 'wasabi_ambulance'
}

Config.AmbulanceJob = dependencyCheck(ambulances)

--[[
    General configuration of backrooms!
    The configuration is simple and precise, just by reading its description
    on the right you will understand everything.

    Please don't forget to install xsound as it is a major dependency.

    Command to send player to backrooms [sendbackrooms id]
]]

Config.BackroomsToDead = { -- When you die, you will have chances to go to backrooms
    enable = true,         -- Enable/Disable backrooms on death
    chance = 5,            -- Chance to go to backrooms on death
}

Config.Map = {
    spawn = vec4(1779.61, -273.81, 20.86, 237.93), -- Player spawn dentro de backrooms
    exit = {
        vec3(1787.512085, -296.940643, 20.854980), -- Exit from the backrooms, you revive when you leave
        vec3(1780.720825, -261.481323, 20.854980), -- Exit from the backrooms, you revive when you leave
        vec3(1766.953857, -283.516479, 20.854980), -- Exit from the backrooms, you revive when you leave
        vec3(1774.404419, -271.200012, 20.854980), -- Exit from the backrooms, you revive when you leave
        vec3(1777.846191, -264.435150, 20.854980), -- Exit from the backrooms, you revive when you leave
        vec3(1765.318726, -286.536255, 20.854980), -- Exit from the backrooms, you revive when you leave
    },
    showMarker = true,                             -- Enable/Disable backroom output marker
}

Config.Ped = {
    models = { -- NPC models that spawn in backrooms
        `QS_173`,
        `QS_doctor`,
        `QS_stealer`,
        `QS_bacteria`,
        `QS_096`,
        `QS_ATC`,
    },
    spawn = vec4(1787.62, -284.21, 20.86, 339.31), -- Ignore
    respawnDistance = 8.5,                         -- Distance to respawn if you move away from it
    damageDistance = 3.5                           -- Distance to take damage per second
}

Config.Sound = {                                          -- Custom sound with 'xsound'
    link = 'https://www.youtube.com/watch?v=PCOG2vyfcAA', -- Choose your YouTube link without copyright
    distance = 15.0,                                      -- Ignore
}


Config.Debug = false