User guide
User guide on how to use the Dynasty Notify
1. Using the notification
You can use the notification as showed in the example bellow:
2. Default notifications
In case you use a notification and don't fill any of the parameters, it will be filled with the value stated in the Config.file. For example if the parameter boxColor
is not used, it will be filled with the value 2B2D42
in this case.
3. Notification configuration
3.1 Box color
In this case the color of the box is #2B2D42
3.2 Icon
In this case the icon used is fas fa-info-circle.
You can find more icons in:
3.3 Icon color
In this case the color of the box is #2f83ff"
3.4 Icon size
In this case the size of the icon is 20px
3.5 Icon shake effect
In this case the shaking effect is used
3.6 Title of the notification
In this case the title of the notification is ALERT
3.7 Title color
In this case the color of the title is #F8E5EE
3.8 Title font size
In this case the size of the title is 15px
3.9 Message of the notification
In this case the message of the notification is Example notification message
3.10 Color of the message
In this case the color of the message is #C4C6E7
3.11 Message font size
In this case the size of the message is 13px
3.12 Image or GIF
In this case the GIF used in the notification is the following:
3.13 Progress bar color
In this case the color of the progress bar is #2f83ff
3.14 Progress bar height
In this case the height of the progress bar is 4px
3.15 Notification sound
In this case the sound used is the file success.mp3
3.16 Sound volume
In this case the volume of the sound is 0.4
3.17 Counter color
In this case the color used is #dc3545
3.18 Counter font size
In this case the font size is 10px
3.19 Time of the notification
In this case the time is 5000
(5 seconds)
3.20 Adding transparency to the notification
FF
- 0% TransparentCC
- 20% Transparent80
- 50% Transparent33
- 80% Transparent00
- 100% Transparent
Adding those values at the end of the hex color adds different levels of transparency. For example 80% transparency would be #2B2D4233
Example of a notification with those parameters:
4.Send notification server side
To send a notification through server side you have to trigger the client event 'dynasty_notify:Notify'
with its parameters
5.Replace QBCore notifications for Dynasty Notifications
To replace QBCore notifications you need to go to qb-core/client/functions.lua
and replace the notify function as the example showed below
Replace the function for this one:
6.Replace ESX notifications for Dynasty Notifications
To replace ESX notifications you need to go to esx_notify/Notify.lua
and replace the notify function as the example showed below
Replace the function for this one:
7.Additional notification examples
Last updated