For the complete documentation index, see llms.txt. This page is also available as Markdown.

config.client.lua

Preview File Updated: v2.0.0 - 22.08.2026

CL = {}

-- ███╗   ██╗ ██████╗ ████████╗██╗███████╗██╗ ██████╗ █████╗ ████████╗██╗ ██████╗ ███╗   ██╗███████╗
-- ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██║██╔════╝██╔══██╗╚══██╔══╝██║██╔═══██╗████╗  ██║██╔════╝
-- ██╔██╗ ██║██║   ██║   ██║   ██║█████╗  ██║██║     ███████║   ██║   ██║██║   ██║██╔██╗ ██║███████╗
-- ██║╚██╗██║██║   ██║   ██║   ██║██╔══╝  ██║██║     ██╔══██║   ██║   ██║██║   ██║██║╚██╗██║╚════██║
-- ██║ ╚████║╚██████╔╝   ██║   ██║██║     ██║╚██████╗██║  ██║   ██║   ██║╚██████╔╝██║ ╚████║███████║
-- ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝╚═╝     ╚═╝ ╚═════╝╚═╝  ╚═╝   ╚═╝   ╚═╝ ╚═════╝ ╚═╝  ╚═══╝╚══════╝
CL.Notification = function(data)
    local color = 
        data.type == "success" and '#36f230' or
        data.type == "error"   and '#f23030' or
        data.type == "info"    and '#4287f5'
    
    if GetResourceState("vms_notify") == 'started' then
        exports['vms_notify']:Notification("", data.message, data.time, color, 'fa-solid fa-users')
    elseif GetResourceState("lation_ui") == 'started' then
        exports['lation_ui']:notify({
            message = data.message,
            type = data.type,
            duration = data.time,
        })
    else
        TriggerEvent('esx:showNotification', data.message)
        TriggerEvent('QBCore:Notify', data.message, 'primary', data.time)
    end
end


-- ██╗  ██╗██╗   ██╗██████╗ 
-- ██║  ██║██║   ██║██╔══██╗
-- ███████║██║   ██║██║  ██║
-- ██╔══██║██║   ██║██║  ██║
-- ██║  ██║╚██████╔╝██████╔╝
-- ╚═╝  ╚═╝ ╚═════╝ ╚═════╝ 
CL.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)
        --     DisplayRadar(false)
        -- end
    end
}

Last updated