Caratinha
Member
How to Integrate FL-Notify
Server Events
- Triggering Notifications to Players: Use the server event fl:notify to send notifications to clients. This event can be called with specific parameters that determine the notification’s appearance and content.
Code:
TriggerClientEvent("fl:notify", targetPlayer, "Notification Title", "Subtitle", "Content message", 5000, "type", "position")
Client Exports
- Directly from Client Scripts: You can directly use the exported function Notify in client-side scripts to trigger notifications without going through the server.
Code:
exports['FL-Notify']:Notify("Notification Title", "Subtitle", "Content message", 5000, "type", "position")