changing qb notify to okoknotify for player injuries

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

1 Like

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
6 Likes

would that replace the functions.lua in qb-core?

thanks for your help!

1 Like

Yes it would

2 Likes
  • update… found it, yes that was the location :stuck_out_tongue: thank you so much for your help with everything so far!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.