Links

okokNotify

Installation Guide

Displaying a notification

Client side

exports['okokNotify']:Alert('Title', 'Message', Time, 'type', playSound)

Server side

TriggerClientEvent('okokNotify:Alert', source, 'Title', 'Message', Time, 'type', playSound)
Time:
  • 1000 = 1 second.
Types:
  • success (green);
  • info (blue);
  • warning (yellow);
  • error (red);
  • phonemessage (orange);
  • neutral (grey).
playSound - true/false.

Adding new colors/notification types

Navigate to the config.lua file and just replicate the existing examples.

Server artifacts

Make sure your server artifacts version is above the 5181.