Simply Drag and drop the 413x-notify folder into your server resources and enable / ensure it in your server.cfg and its set up on your server. To use the notification simply either call the export function or your the Net Event :
I have put in a test command so you can see what the notification look like in game simply use /notify.
Customization
To customise the notification all you need to do is edit the script.js file and add to or edit any of the existing notification. For the icons I am using Font Awesome you can find the icons here Search v5 Icons | Font Awesome
function QBCore.Functions.Notify(text, texttype, length)
local convert = {
[“primary”] = ‘info’,
[“police”] = ‘police’,
[“ambulance”] = ‘ems’,
}
if not texttype then
texttype = 'info'
end
if convert[texttype] then
texttype = convert[texttype]
end
local title = texttype
if type(text) == "table" then
local ttext = text.text or 'Placeholder'
local caption = text.caption or 'Placeholder'
length = length or 5000
title = caption
text = ttext
else
length = length or 5000
end
exports['413x-notify']:Alert(texttype, title, text, length)
end
*edit not sure why it looks like that but just make sure to copy it all