ESX

Replace Default Notifications

ESX Default Notifications

Step 1:

go to esx_notify > Notify.lua

Step 2:

find the Function called "Notify" then replace that function with this:

local function Notify(notificatonType, length, message)
    if Debug then
        print(('1 %s'):format(tostring(notificatonType)))
        print(('2 %s'):format(tostring(length)))
        print(('3 %s'):format(message))
    end

    if Debug then
        print(('4 %s'):format(tostring(notificatonType)))
        print(('5 %s'):format(tostring(length)))
        print(('6 %s'):format(message))
    end

    exports['Browns-iNotify']:iNotify(nil, message, true)

end

OX_Lib Default Notifications

Step 1:

go to ox_lib > resource > interface > client > notify.lua

Step 2:

find the Function called "lib.notify" (should be around line 18) and replace that function with this:

function lib.notify(data)
    exports['Browns-iNotify']:iNotify(data.title, data.description, true)
end

Last updated