Usage Guide

Triggering Notifications

You can trigger a notification from any client-side script using the following event:

TriggerEvent('saka_notify:notify', {
    title = 'Your Title',
    description = 'Your description goes here.',
    type = 'success' -- or info / error / bank / etc.
})

Basic Notification

TriggerEvent('saka_notify:notify', {
    title = 'Welcome',
    description = 'You’ve joined the server.',
    type = 'info'
})

Using Custom Notification Types

If you’ve defined a new type in Config.notificationTypes (e.g., "warning" or "bank"), just use it directly:

TriggerEvent('saka_notify:notify', {
    title = 'Bank Update',
    description = 'Your deposit has been received.',
    type = 'bank'
})

Make sure that the type (bank in this case) exists in your config.


Custom Display Time

You can override the default duration using the duration field (in ms):


Advance Example


OX_lib Usage

Here is the usage to bridge OX_lib notifys to Saka's.


Tips

• You don’t need a server event; this is purely client-side.

• Works in any framework – just make sure the script is ensured and the event is called from the client.

• Customize notification sounds or icons via config.lua.

Last updated