Configuration

Contents of config.lua

We recommend you to use the ambulance scripts suggested in the script, you may have problems with another system to revive the player, or to send the player when he dies to the backroom.

Config = {}

--[[
    Framework:
        'esx'
        'qb'

    AmbulanceJob:
        'esx_ambulancejob'
        'qb-ambulancejob'
        'wasabi_ambulance'

]]

Config.Framework = 'esx'
Config.AmbulanceJob = 'esx_ambulancejob'

--[[
    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 = 10,           -- 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
}

Last updated