- go to es_extended/client/functions.lua
- Find this function ESX.ShowNotification 
- Replace ESX.ShowNotification function with the code down below

function ESX.ShowNotification(msg, texttype, length)
    local avaliableTypes = {
        "check",
        "info",
        "ann",
        "msg",
        "twt",
        "call",
        "venicebank",
        "bill",
        "lspd",
        "save",
        "ems",
        "error",
    }

    local convert = {
        ["primary"] = 'info',
        ["success"] = 'check',
        ["police"] = 'lspd',
        ["ambulance"] = 'ems',
    }

    if convert[texttype] then
        texttype = convert[texttype]
    end
    local found = false
    for _,v in pairs(avaliableTypes) do
        if texttype == v then
            found = true
        end
    end
    if not found then
        texttype = 'info'
    end
    TriggerEvent('codem-notification',msg,length or 5000,texttype)
end


