Notification using html/css/js and lua.
you can copy the function and past it into your code.
exports.GTA_Notif:GTA_NUI_ShowNotification({
text = "Your Text, Hello World !",
type = "success", --> Your type between error/success/warning
icon = "fab fa-angellist fa-2x", --> here is your icon for e.g i added a peace icon. zoomed x2.
position = "row-reverse" --> here is your icon position between row/row-reverse.
})
dont forgot to add the GTA_Notif into your server.cfg like :
ensure GTA_Notif
- error
- warning
- success
- "row"
- "row reverse"
row = position right row-reverse = position left
Change the timer of the pop pup display in the js file. use the notification by event useful for server-side.
@SuperCoolNinja