Replacing qb-core notify
This page will contain information about how to replace the qb-core notifications with orbit-dynamichud's built-in notification system.
🔁 Replacing qb-core Notify
qb-core NotifyQBCore.Functions.Notify(...)📂 File Location
qb-core/client/functions.luafunction QBCore.Functions.Notify(text, texttype, length, icon)✏️ What To Replace It With
function QBCore.Functions.Notify(text, texttype, length, icon)
local data = {}
if type(text) == "table" then
local ttext = text.text or 'Placeholder'
local caption = text.caption or nil
local ttype = texttype or 'primary'
local duration = length or 5000
data = {
title = caption,
description = ttext,
duration = duration,
type = ttype,
icon = icon,
}
else
local ttype = texttype or 'primary'
local duration = length or 5000
data = {
title = nil,
description = text,
duration = duration,
type = ttype,
icon = icon,
}
end
TriggerEvent('orbit-dynamichud:notify', data)
end🧠 What This Does
✅ Fully Supported Structure
Simple String Usage
Table Usage
⚠️ Important Notes
🎯 Result
Last updated