This is a tutorial for setting up mythic_notify for the qbcore framework for lay people.
For those of you who want to use mythic_notify but don’t know how to install it for the QBcore framework, follow my method.
step 1. download the file here https://github.com/JayMontana36/mythic_notify
step 2. open qb-core/client/function.lua
step 3. change
function QBCore.Functions.Notify(text, texttype, length, icon)
local message = {
action = 'notify',
type = texttype or 'primary',
length = length or 5000,
}
if type(text) == 'table' then
message.text = text.text or 'Placeholder'
message.caption = text.caption or 'Placeholder'
else
message.text = text
end
if icon then
message.icon = icon
end
SendNUIMessage(message)
end
to
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['mythic_notify']:DoCustomHudText(ttype, ttext, length, caption)
else
local ttype = textype or 'inform'
local length = length or 5000
exports['mythic_notify']:DoCustomHudText(ttype, text, length)
end
end
This is very easy. have a nice day
#indonesia roleplay