Hi there, i have okoknotify on my server and im looking to utilise that for the notifications the players receive from things like stumbling, being hurt, having a broken leg etc but im unsure how to do it?
any help is appreciated
Hi there, i have okoknotify on my server and im looking to utilise that for the notifications the players receive from things like stumbling, being hurt, having a broken leg etc but im unsure how to do it?
any help is appreciated
would it be just changing the QBCore:Notify to okokNotify:Action in the luas?
Here’s what i replaced mine with when i used that notification system
function QBCore.Functions.Notify(text, texttype, length)
if type(text) == "table" then
local ttext = text.text or 'Placeholder'
local caption = text.caption or 'Placeholder'
local ttype = texttype or 'neutral'
local length = length or 8500
exports['okokNotify']:Alert(ttext, caption, length, ttype)
else
local ttype = texttype or 'neutral'
local length = length or 8500
exports['okokNotify']:Alert(text, "", length, texttype)
end
end
would that replace the functions.lua in qb-core?
thanks for your help!
Yes it would
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.