Installation Guide ESX

This way replaces all ESX notifications

Open file es_extented/functions/client.lua

Find:

function ESX.ShowNotification(message, type, length)
    if GetResourceState("esx_notify") ~= "missing" then
        return exports["esx_notify"]:Notify(type, length, message)
    end

    print("[^1ERROR^7] ^5ESX Notify^7 is Missing!")
end

Replace:

function ESX.ShowNotification(message, tipo, length)
    if GetResourceState("zcmg_advanced-notify") ~= "missing" then
        length = length or 5000
        tipo = tipo or 'info'

        if type(tipo) ~= string then tipo = 'info' end

        TriggerEvent('zcmg_advanced-notify:open', 'Esx Developer PT', message, length, tipo)
    else
        print("[^1ERROR^7] ^5zcmg_advanced-notify^7 não está instalado!")
    end
end

Last updated