/qb-okokNotify

Replaces Default Qb-Notify With OkOkNotify Script :)

Primary LanguageLua

qb-okokNotify Replacement

Steps To Install:

  1. Go To qb-core/client/functions.lua

.

  1. Find The Following Code: This Is Located Around Line 88

QBCore.Functions.Notify

.

  1. Delete From Around Line 88 To Around 111 Where The End Of That Function Is :)

.

  1. Paste The Following Code In To Replace That Code!
function QBCore.Functions.Notify(text, textype, length)
    if textype == "primary" then textype = "inform" end
    if type(text) == "table" then
        local ttext = text.text or 'Placeholder'
        local caption = text.caption or 'Placeholder'
        local ttype = textype or 'inform'
        local length = length or 3000
        exports['okokNotify']:Alert("🔔   Notification   🔔", text, length, "info")
    else
        local ttype = textype or 'inform'
        local ttext = text.text or 'Placeholder'
        local length = length or 5000
        exports['okokNotify']:Alert("🔔   Notification   🔔", text, length, "info")
    end
end

.

Dependency's:

Preview 1:

Image

Preview 2:

Image