darkosiel / gta_notify

A simple notification sistem for FiveM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gta_notify

A simple notification sistem for FiveM

This is a redesign and inspiration mythic_notify Original Author: @JayMontana36

preview 👀

usage

client.lua

exports['gta_notify']:NormalNoti('notify', 'message')

server.lua

TriggerClientEvent('gta_notify:client:SendAlert', source, { type = 'notify', text = 'texto' })

Notify duration exports

  • NormalNoti -> A normal notify duration
  • LongNoti -> A large notify duration
  • CustomNoti -> Custom notify duration
  • NotiFija -> Infinite notify duration (You can end the notify :))

NotiFija Usage

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.


Badges

  • badge-core -> A background for put yor server name
  • title -> A title class
  • icon -> a class for the icons of Font Awesome
  • bold -> 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

About

A simple notification sistem for FiveM

License:MIT License


Languages

Language:CSS 95.8%Language:JavaScript 2.3%Language:Lua 1.3%Language:HTML 0.6%