ESX

1

Go to es_extended/client/functions.lua

Find ESX.ShowNotification

function ESX.ShowNotification(message, notifyType, length)
    return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end

Add code in top ESX.ShowNotification

if GetResourceState("jc-notify") ~= "missing" then
    TriggerEvent('jc-notify:client:notify', message, notifyType, length)
    return true
end

Full code

function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("jc-notify") ~= "missing" then
        TriggerEvent('jc-notify:client:notify', message, notifyType, length)
        return true
    end
    return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end

Last updated