A simple notification sistem for FiveM
This is a redesign and inspiration mythic_notify Original Author: @JayMontana36
client.lua
exports['gta_notify']:NormalNoti('notify', 'message')
server.lua
TriggerClientEvent('gta_notify:client:SendAlert', source, { type = 'notify', text = 'texto' })
- NormalNoti -> A normal notify duration
- LongNoti -> A large notify duration
- CustomNoti -> Custom notify duration
- NotiFija -> Infinite notify duration (You can end the notify :))
NotiFija Notifications Actions -
exports['gta_notify']:NotiFija('start', 'notifijaidtest', 'success', 'NotiFija test. (Persist Noti)')
exports['gta_notify']:NotiFija('end', 'notifijaidtest')
start (start the notification) end (end the notification)
NOTE: If you have a issue pls contact me on discord.
badge-core
-> A background for put yor server nametitle
-> A title classicon
-> a class for the icons of Font Awesomebold
-> a bold text class<hr>
-> it's a html code. It's a separation line
You need to put in
the badge you are going to use
example:
exports['gta_notify']:NormalNoti('notify', '<span class="title">Salary Notification</span>" .. xPlayer.Salary .. "<hr> <div class="badge-core">ROLEPLAYSERVER</div>')
This is a redesign and inspiration mythic_notify Original Author: @JayMontana36