π AN Notify
iOS Inspired & Advanced Notification System

How to use?
Simple Notification Usage:
Client Side:
SERVER SIDE
PLAYER_ID: [ Only required when triggering the notification from server side ] ID of the player who should receive the notification
TITLE: Notification Title ( must be short )
TEXT: Content of the notification ( can be of any size )
STYLE: Can be one of the following: "success", "primary", "danger", "dark" or "light"
AUTHOR: The small text in the bottom right of the notification
ICON: You must use an icon from Font Awesome: https://fontawesome.com/icons β You only copy the classes, for example: For this to work: , you only put this: "fa-solid fa-person-rifle"
DURATION: TIME in MS
USE_SOUND: Enable/Disable Sound on this notification ( can be either true or false )
Clickable Notification Usage:
CLIENT SIDE:
SERVER SIDE:
PLAYER_ID: [ Only required when triggering the notification from server side ] ID of the player who should receive the notification
THE FIRST 7 ARGUMENTS ARE THE SAME AS ABOVE
EVENT: Event you want to trigger once the notification is clicked
PARAMS: A Parameter passed as a table for the event, something like:
{ param1 = val1, param2 = val2 }EVENT_TYPE: Can be Either "client" or "server"
CLOSEUI: Whether to close the UI after clicking the notification
Replacing ESX Notification
Go to:
es_extended/client/functions.luaFind this function:
Replace it with this one:
Replacing QBCore Notification
Open this file:
qbcore/main/client/functions.luaFind this function:
Replace it with this one:
Example Snippets:
Here are some examples to get you going, these are the ones used in the Demonstration Video. You can add this code to any client file in order to test the notification system.
EXAMPLE OF SIMPLE NOTIFICATION
EXAMPLE OF CLICKABLE NOTIFICATION
Last updated