Change Notifications
Change the Notifications
MSK Core
If you want to change the Notifications for ALL Scripts from us, then go to msk_core/config.lua and change the following:
Config.Notification = 'custom'
Config.customNotification = function(title, message, typ, duration)
    -- Add your own clientside Notification here
endSingle Script
If you want to change the Notifications for only one script, then go to the config.lua of the script and change the following:
Config.Notification = function(source, message, typ)
    if IsDuplicityVersion() then
        -- Add your serverside notification here
    else
        -- Add your clientside notification here
    end
endESX
If you want to change the Notification of ESX to our Notification then go to es_extended/client/functions.lua and search for:
function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("esx_notify") ~= "missing" then
        return exports["esx_notify"]:Notify(notifyType, length, message)
    end
    print("[^1ERROR^7] ^5ESX Notify^7 is Missing!")
endReplace this function with the following function:
function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("msk_core") ~= "missing" then
        return exports["msk_core"]:Notification('Information', message, notifyType, length)
    end
    print("[^1ERROR^7] ^5MSK Notify^7 is Missing!")
endLast updated
