Page cover

Installation guide

Welcome to the Brutal Notify installation guide, here you can learn how to completely install our asset.

If you don't have any experience in development we are highly recommend to follow each step in this documentation, and if you have a developer ask them to install the script for you as they have more experience.


Asset download

  • Put the script folder to your server.

  • Start the script in the server.cfg. (ensure brutal_notify)

  • Restart your server! (And you get permission to use the script)


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.

How to integrate Brutal Notify with your server

ESX

Find the ESX.ShowNotification function, then replace it with:

es_extended/client/functions.lua
function ESX.ShowNotification(message, type, length)
    exports['brutal_notify']:SendAlert('Brutal Notify', message, length, type)
end

QBCORE

Find the QBCore.Functions.Notify function, then replace it with:

qb-core/client/functions.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

Asset positioning

-- First we will start the cores, never below
ensure es_extended or qb-core

ensure brutal_notify -- ensure the script before the other scripts

ensure [jobs]
ensure [inventory]
ensure [billing]

-- other scripts

If you got any error

If you followed the installation guide and the script still don't work or you get any errors the please check the common errors, here in the docs and in our discord server, for more informations.

Last updated

Was this helpful?