Skip to content

Teezy-Core/mythic_notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mythic_notify

This is a re-skin of the legendary notification system from FiveM, known as mythic_notify. LOL

Preview: https://streamable.com/g8nwpv

image

Example Usage

Client

RegisterCommand('testall', function()
 	exports['mythic_notify']:SendAlert('inform', 'This is a test of the notification system. INFORM', 2500)
 	exports['mythic_notify']:SendAlert('success', 'This is a test of the notification system. SUCCESS', 2500)
 	exports['mythic_notify']:SendAlert('warning', 'This is a test of the notification system. WARNING', 2500)
 	exports['mythic_notify']:SendAlert('error', 'This is a test of the notification system. ERROR', 2500)
 	exports['mythic_notify']:SendAlert('status', 'This is a test of the notification system. STATUS', 2500)
	exports['mythic_notify']:PersistentAlert('start', 'test', 'status', 'This is a test of the notification system. PERSISTENT', 2500)
 	Wait(10000)
 	exports['mythic_notify']:PersistentAlert('end', 'test')
end)

Server

RegisterCommand('testServernotif', function()
    TriggerServerEvent('mythic_notify:server:SendAlert', { type = 'inform', text = 'This is a test of the notification system. INFORM', 2500})
     TriggerServerEvent('mythic_notify:server:SendAlert', { type = 'success', text = 'This is a test of the notification system. SUCCESS', length = 2500, style = { ['background-color'] = '#ffffff', ['color'] = '#000000' } })
     TriggerServerEvent('mythic_notify:server:SendAlert', { type = 'warning', text = 'This is a test of the notification system. WARNING', length = 2500, style = { ['background-color'] = '#ffffff', ['color'] = '#000000' } })
     TriggerServerEvent('mythic_notify:server:SendAlert', { type = 'error', text = 'This is a test of the notification system. ERROR', length = 2500, style = { ['background-color'] = '#ffffff', ['color'] = '#000000' } })
     TriggerServerEvent('mythic_notify:server:SendAlert', { type = 'status', text = 'This is a test of the notification system. STATUS', length = 2500, style = { ['background-color'] = '#ffffff', ['color'] = '#000000' } })
     TriggerServerEvent('mythic_notify:server:PersistentAlert', { action = 'start', id = 'test', type = 'status', text = 'This is a test of the notification system. PERSISTENT', style = { ['background-color'] = '#ffffff', ['color'] = '#000000' } })
     Wait(10000)
     TriggerServerEvent('mythic_notify:server:PersistentAlert', { action = 'end', id = 'test' })
end)

About

Re-skin of a fivem legend notify LOL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published