Skip to content

A simple notification system inspired by NoPixel's

License

Notifications You must be signed in to change notification settings

wowpanda/mythic_notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mythic Notifications

A simple notification system inspired by NoPixel's

Image of Notification

Use

To display a notification simply make a call like below :

exports['mythic_notify'].DoHudText('type', 'message')

There 3 types;

  • Inform - 'inform'
  • Error - 'error'
  • Success - 'success'

There are 4 types of notifications;

  • DoShortHudText - Displays 1000ms (1 Second)
  • DoHudText - Displays For 2500ms (2.5 Seconds)
  • DoLongHudText - Displays For 5000ms (5 Seconds)
  • DoCustomHudText - Displays For Set Time (In Milliseconds)

You can also use the client event to fire off a notification, useful for sending a notification from the server

TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'type', text = 'message' })

As of right now there is only a single event which does DoHudText (Displays notification for 2500ms or 2.5 seconds)

About

A simple notification system inspired by NoPixel's

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published