DOWNLOAD :
qb-core/client/functions [replace function]
function QBCore.Functions.Notify(text, textype, length)
if type(text) == "table" then
local ttext = text.text or 'Placeholder'
local caption = text.caption or 'Placeholder'
local ttype = textype or 'primary'
local length = length or 5000
--[[SendNUIMessage({
action = 'notify',
type = ttype,
length = length,
text = ttext,
caption = caption
})]]
exports['svnNotification']:notification('far fa-keyboard text-'..ttype,"Notification","",ttext, length,'not1')
else
local ttype = textype or 'primary'
local length = length or 5000
--[[SendNUIMessage({
action = 'notify',
type = ttype,
length = length,
text = text
})]]
exports['svnNotification']:notification('far fa-keyboard text-'..ttype,"Notification","",text, length,'not1')
end
end
qb-core/client/functions [replace function]
function QBCore.Functions.Notify(text, textype, length)
if type(text) == "table" then
local ttext = text.text or 'Placeholder'
local caption = text.caption or 'Placeholder'
local ttype = textype or 'primary'
local length = length or 5000
--[[SendNUIMessage({
action = 'notify',
type = ttype,
length = length,
text = ttext,
caption = caption
})]]
exports['svnNotification']:notification('far fa-keyboard text-'..ttype,"Notification","",ttext, length,'not1')
else
local ttype = textype or 'primary'
local length = length or 5000
--[[SendNUIMessage({
action = 'notify',
type = ttype,
length = length,
text = text
})]]
exports['svnNotification']:notification('far fa-keyboard text-'..ttype,"Notification","",text, length,'not1')
end
end
Attachments
Last edited: