[Release] [Free] Customisable Notification System

[Release] [Free] Customisable Notification System

A simple notification system built for FiveM Roleplay with the ability to create custom notification suited to your server.

How to setup and use

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 :

NotificationImage4

I have put in a test command so you can see what the notification look like in game simply use /notify.

NotificationImage3

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

NotificationImage2

Download Here

5 Likes

Looks great

2 Likes

Brilliant Script!

1 Like

Way to get it to work with Text like this > (You sold ~b~x%d~s~ ~y~%s~s~ for ~r~$%s)

Not the right place mate, please move this to releases page.

How to show the notification not only to the client but to all the server’s player?

Hello, how can I export so that it works by default with qb-core-functions?

should be simple im not the orginial poster but give me a sec i can maybe make it work

Wrong topic category. Change to Releases

try this

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

1 Like

yes indeed it is! Another thing, how can I translate the titles?

1 Like

javascript file

Could you tell me how I color the text within the notification?

CSS more than likely

Don’t refer me to that! I mean something like that
1

Most likely with text formatting:
https://docs.fivem.net/docs/game-references/text-formatting/