- go to qb-core/client/functions.lua
- Find this function QBCore.Functions.Notify
- Replace QBCore.Functions.Notify function with the code down below

function QBCore.Functions.Notify(text, 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

    if type(text) == "table" then
        local ttext = text.text or 'Placeholder'
        local caption = text.caption or 'Placeholder'
        length = length or 5000
        TriggerEvent('codem-notification',ttext,length,texttype)
    else
        length = length or 5000
        TriggerEvent('codem-notification',text,length,texttype)
    end
end