vms_tattooshop

vms_tattooshop/config/config.client.lua

CL.Notification = function(message, time, type)
    if type == "success" then
        if GetResourceState("vms_notify") == 'started' then
            exports['reaver_notify']:reaver_notify_showNotification(message, type, time)
        else
            exports['reaver_notify']:reaver_notify_showNotification(message, type, time)
        end
    elseif type == "error" then
        if GetResourceState("vms_notify") == 'started' then
            exports['reaver_notify']:reaver_notify_showNotification(message, "info", time)
        else
            exports['reaver_notify']:reaver_notify_showNotification(message, "info", time)
        end
    elseif type == "info" then
        if GetResourceState("vms_notify") == 'started' then
            exports['reaver_notify']:reaver_notify_showNotification(message, type, time)
        else
            exports['reaver_notify']:reaver_notify_showNotification(message, type, time)
        end
    end
end

CL.TextUI = {
    Enabled = true,
    Open = function(message)
        if GetResourceState("reaver_notify") == 'started' then
            exports['reaver_notify']:DrawText('[E] '..message)
            
        elseif GetResourceState("okokTextUI") == 'started' then
            exports['okokTextUI']:Open('[E] '..message, 'darkgreen', 'right')
            
        else
            if Config.Core == "ESX" then
                ESX.TextUI(message)
                
            else
                exports['qb-core']:DrawText(message, 'right')
            end
        end
        
    end,
    Close = function()
        if GetResourceState("reaver_notify") == 'started' then
            exports['reaver_notify']:HideText()
            
        elseif GetResourceState("okokTextUI") == 'started' then
            exports['okokTextUI']:Close()
            
        else
            if Config.Core == "ESX" then
                ESX.HideUI()
                
            else
                exports['reaver_notify']:HideText()
                
            end
        end
    end
}

Última actualización