QBCore
Replace Default Notification System
QBCore Default Notifications
Step 1:
go to qb-core > client > events.lua
Step 2:
find the event called "QBCore:Notify" (should be around line 193) and replace that event with this:
RegisterNetEvent('QBCore:Notify', function(text, type, length)
exports['Browns-iNotify']:iNotify(nil, text, true)
end)Step 3:
go to qb-core > client > functions.lua
Step 4:
Find the Function called "QBCore.Functions.Notify" (should be at around line 83) and replace the function with this:
function QBCore.Functions.Notify(text, texttype, length)
if type(text) == "table" then
local ttext = text.text or 'Placeholder'
local caption = text.caption or 'Placeholder'
exports['Browns-iNotify']:iNotify(caption, ttext, true)
else
exports['Browns-iNotify']:iNotify(nil, text, true)
end
endOX_Lib Default Notifications
Step 1:
go to ox_lib > resource > interface > client > notify.lua
Step 2:
find the Function called "lib.notify" (should be around line 18) and replace that function with this:
function lib.notify(data)
exports['Browns-iNotify']:iNotify(data.title, data.description, true)
endLast updated