Installation guide
Follow the instructions below! It is important that you do everything exactly as described!
How can I edit the Notify in any other scripts?
Every script use a notify function. So you have to change the notify trigger / export in all your scripts, which not use the brutal notify or the default ESX / QB notify.
Use these triggers to use the Brutal Notify.
Okay, but wait. What is the source, title, message, time, type?
Source (You have to add the source in server side.)
Title (This is the notify Title, Enter a custom text here, e.g. 'Notify')
Message (You have to add the notify message here.)
Time (Time of visibility of the notify. (Between 1000-15000) 1000 = 1 sec)
[ error / info / / success ]
Sound (If you want to give sound for that notify or not. true/false)
Trigger from Server side
Server side
TriggerClientEvent('brutal_notify:SendAlert', source, 'Title', 'Message', Time, 'type', Sound)
Export from Client side
Client side
exports['brutal_notify']:SendAlert('Title', 'Message', Time, 'type', Sound)
How to change the notify in your server to Brutal Notify?
ESX
es_extedned/client/functions.lua
Replace this function:
function ESX.ShowNotification(message, type, length)
exports['brutal_notify']:SendAlert('Brutal Notify', message, length, type)
end
QBCORE
qb-core/client/functions.lua
Replace this function:
```lua
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
exports['brutal_notify']:SendAlert(caption, ttext, length, texttype)
else
texttype = texttype or 'primary'
length = length or 5000
exports['brutal_notify']:SendAlert('Brutal Notify', text, length, texttype)
end
end
```
Last updated
Was this helpful?