Full View config.lua

Preview File Updated: v1.0.4 - 14.01.2024

Config = {}

--[[
    In case of any problems, refer to the documentation:
    https://docs.vames-store.com/assets/vms_spawnselector


    Client Trigger: "vms_spawnselector:open"
    Client Export: exports['vms_spawnselector']:OpenSpawnSelector

]]

Config.Core = "ESX" -- "ESX" / "QB-Core"
Config.CoreExport = function()
    return exports['es_extended']:getSharedObject() -- ESX
    -- return exports['qb-core']:GetCoreObject() -- QB-CORE
end

Config.Notification = function(message, time, type)
    if type == "error" then
        if GetResourceState("vms_notify") == 'started' then
            exports['vms_notify']:Notification('SPAWN SELECTOR', message, time, '#f52a2a', 'fa-solid fa-map-pin')
        else
            TriggerEvent('esx:showNotification', message)
            TriggerEvent('QBCore:Notify', message, 'error', time)
        end
    end
end

Config.Translate = {
    ['cannot_spawn_on_dead'] = "Your previous game ended in death, you must be reborn in the last location.",
    ['house_label'] = 'House',
}

Config.Hud = {
    Enable = function()
        if GetResourceState('vms_hud') ~= 'missing' then
            exports['vms_hud']:Display(true)
        end
    end,
    Disable = function()
        if GetResourceState('vms_hud') ~= 'missing' then
            exports['vms_hud']:Display(false)
        end
    end
}

Config.WeatherSync = "vSync" -- "cd_easytime", "qb-weathersync", "vSync"
Config.Weather = 'CLEAR' -- weather type
Config.Time = {hour = 20, minutes = 0}

Config.OnDeadOnlyLastPosition = true -- When the player is dead, should he be able to be reborn only in the previous location or can he be reborn in any location

-- @UseHousingSpawns: In config.client.lua & config.server.lua you can adjust to your housing system if you are using other than esx_property/qb-houses/qs-housing 
Config.UseHousingSpawns = true

-- @UseOnlyFirstJoinSelect: Using this option, the player will be able to choose the spawn location only once, until the server restarts
Config.UseOnlyFirstJoinSelect = true

Config.Spawns = {
    [1] = {
        camCoords = vector3(1151.57, -627.64, 65.27),
        spawnCoords = vector4(1127.14, -645.29, 55.79, 281.89),
        label = "Mirror Park",
        address = "Mirror Park Blvd",
    },
    [2] = {
        camCoords = vector3(-1011.8, -2714.38, 23.61),
        spawnCoords = vector4(-1037.8, -2737.82, 19.17, 325.98),
        label = "Airport",
        address = "New Empire Way",
    },
    [3] = {
        camCoords = vector3(-1249.22, -1469.2, 10.6),
        spawnCoords = vector4(-1265.34, -1481.28, 3.33, 286.73),
        label = "Beach",
        address = "Aguja St.",
    },
    [4] = {
        camCoords = vector3(1113.8, 2680.31, 46.42),
        spawnCoords = vector4(1138.84, 2672.44, 37.13, 89.32),
        label = "Sandy Shores",
        address = "Route 68",
    },
    [5] = {
        camCoords = vector3(176.68, 6555.92, 43.24),
        spawnCoords = vector4(159.59, 6587.62, 31.12, 187.2),
        label = "Paleto Bay",
        address = "Great Ocean Hwy",
    },
}

Config.OnlyJobsSpawns = {
    ['police'] = {
        {
            camCoords = vector3(400.97, -953.46, 42.28),
            spawnCoords = vector4(427.18, -974.64, 30.71, 93.26),
            label = "Police Department",
            address = "Mission Row",
        },
        {
            camCoords = vector3(1873.35, 3667.73, 38.64),
            spawnCoords = vector4(1854.2, 3681.26, 33.27, 214.38),
            label = "Police Department",
            address = "Sandy Shores",
        },
    },
    -- ['ambulance'] = {

    -- },
}

Last updated