Integration with Other Scripts

Integration with Other Scripts

To use the notification system in your own scripts, you can call the export function ShowNotification from the b2_notifyV2 resource.

Example:

-- Assuming this code is in another resource
exports['b2_notifyv2']:ShowNotification("Player Joined", "A new player has joined the server", 5000, "info", "top-right")

Last updated