ESX

How to add on some scripts of ESX

Add to es_exteded

Go to es_extended/client/functions.lua and search

ESX.ShowNotification

Change to

function ESX.ShowNotification(text, style, length)
    if GetResourceState("stNotify") ~= "missing" then
        local exist = exports["stNotify"]:GetType(style)
        if exist then return exports['stNotify']:Notify(style, text) end
        return exports['stNotify']:Notify('info', text)
    end

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

Last updated

Was this helpful?