okokNotify is a modern-style notification UI for FiveM. It runs standalone (client script plus an HTML interface) and you trigger notifications from your own scripts with one export or server event.
Features
- Six notification types:
success(green),info(blue),warning(yellow),error(red),phone(orange) andneutral(grey) - Each notification has a title, a message and a display time in milliseconds (1000 = 1 second)
- Plays a notification sound (
html/sound.mp3) - Icons from Font Awesome 5
- Add your own types and colours by editing
styles.cssandscripts.js; the README walks you through it
Usage
Client side:
exports['okokNotify']:Alert("Title", "Message", Time, 'type')
Server side:
TriggerClientEvent('okokNotify:Alert', source, "Title", "Message", Time, 'type')
Requirements
No framework needed. The resource contains only a client script and the HTML/CSS/JS interface.
Installation
- Place the
okokNotifyfolder in yourresourcesfolder. - Add
ensure okokNotifyto yourserver.cfg. - Call the export or event above from your scripts.