QB Function

There you have snippet code for change qb framework notify to ug-notification

Open qb-core/client/function.lua

Find QBCore.Functions.Notify and change

From

function QBCore.Functions.Notify(text, texttype, length, icon)
    local message = {
        action = 'notify',
        type = texttype or 'primary',
        length = length or 5000,
    }

    if type(text) == 'table' then
        message.text = text.text or 'Placeholder'
        message.caption = text.caption or 'Placeholder'
    else
        message.text = text
    end

    if icon then
        message.icon = icon
    end

    SendNUIMessage(message)
end

To

Save and restart server :)

if you have problems with something then come to discord (https://discord.gg/dXDkTjtdDU)

Last updated