Framework
  1. Open qb-core/client/functions.lua
  2. Search for QBCore.Functions.Notify
  3. Replace with the code below.
function QBCore.Functions.Notify(text, texttype, length)
    if type(text) == "table" then
        local ttext = text.text or 'Placeholder'
        local caption = text.caption or 'Placeholder'
        texttype = texttype or 'primary'
        length = length or 5000
        exports['sd-notify']:Notify(caption, ttext, length, texttype)
    else
        texttype = texttype or 'primary'
        length = length or 5000
        exports['sd-notify']:Notify('', text, length, texttype)
    end
end