ESX Notify To Overextended Notify

Now, personally I do not like the esx_notify look so I have edited the function so that every script that uses esx_notify now uses ox_lib.

Go to es_extended > client > functions.lua. Then look for the ESX.ShowNotification function and replace it with this below:

function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("esx_notify") ~= "missing" then
        return
        lib.notify({
            title = 'Server',
            description = message,
            showDuration = true,
            position = 'center-right',
            style = {
                backgroundColor = '#141517',
                color = '#C1C2C5',
                ['.description'] = {
                  color = '#909296'
                }
            },
            icon = 'circle-info'
        })
    end

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

Then, go to es_extended > fxmanifest.lua and add this to it:

shared_script '@ox_lib/init.lua'

Last updated