8000 GitHub - minuka05/cmNotify: CSS edit of mythic notify
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

minuka05/cmNotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CM Notifications for QBCore Framework

CSS Edit of mythic notify

https://github.com/minuka05/cmNotify

Forked From - https://github.com/maejok-xx/mythic_notify

Preview

Installation

  • Replace the QBCore.Functions.Notify() function in ./qb-core/client/functions.lua:128
function QBCore.Functions.Notify(text, texttype, length)
    if type(text) == "table" then
        local ttext = text.text or 'Placeholder'
        local caption = text.caption or 'Placeholder'
        texttype = texttype or 'primary'
        length = length or 5000
        SendNUIMessage({
            action = 'notify',
            type = texttype,
            length = length,
            text = ttext,
            caption = caption
        })
    else
        texttype = texttype or 'primary'
        length = length or 5000
        SendNUIMessage({
            action = 'notify',
            type = texttype,
            length = length,
            text = text
        })
    end
end
  • Replace the above code with the following
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 5000
        exports['cmNotify']:DoCustomHudText(ttype, ttext, length, caption)
    else
        local ttype = textype or 'inform'
        local length = length or 5000
        exports['cmNotify']:DoCustomHudText(ttype, text, length)
    end
end

About

CSS edit of mythic notify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0