Installation guide

Follow the instructions below! It is important that you do everything exactly as described!

The script works on all FiveM servers!

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 ]

Trigger from Server side

TriggerClientEvent('brutal_notify:SendAlert', source, 'Title', 'Message', Time, 'type')

Export from Client side

exports['brutal_notify']:SendAlert('Title', 'Message', Time, 'type')

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