API Reference
Client API Reference
Exports
CreateNotification
{
type = string, -- 'success', 'error', 'info', 'warning'
message = string, -- The notification message
title = string, -- (Optional) Title for advanced style
position = string, -- (Optional) Screen position
duration = number -- (Optional) Duration in milliseconds
}-- Basic usage
exports['b2-sleeknotify']:CreateNotification({
type = 'success',
message = 'Basic notification'
})
-- Full options
exports['b2-sleeknotify']:CreateNotification({
type = 'success',
title = 'Operation Complete',
message = 'Action was successful',
position = 'TOP_RIGHT',
duration = 5000
})Events
notifications:create
Server API Reference
Exports
SendNotificationToPlayer
SendNotificationToAll
Events
notifications:server:create
Common Use Cases
Server Announcements
Player-Specific Notifications
Last updated