Fl-notify [free]

FL-Notify System Usage Guide

Welcome to the FL-Notify notification system. This guide will help you understand how to integrate and use FL-Notify within your server for displaying customizable notifications to players. FL-Notify provides a flexible way to show notifications with different styles, positions, and durations, enhancing the in-game experience.

How to Integrate FL-Notify

For Server Owners

To integrate FL-Notify into your FiveM server, you will utilize two main components: server events and client events. Here’s how you can use them:

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.

Example Usage:


TriggerClientEvent("fl:notify", targetPlayer, "Notification Title", "Subtitle", "Content message", 5000, "type", "position")

Replace targetPlayer with the player ID to whom you want to send the notification. For broadcasting to all players, use -1 as the targetPlayer value.

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.

Example Usage:


exports['FL-Notify']:Notify("Notification Title", "Subtitle", "Content message", 5000, "type", "position")

Notification Parameters

When triggering notifications, you’ll need to provide several parameters to customize the notification’s appearance and behavior:

  • Title: The main title of the notification.

  • Subtitle: A secondary title or subtitle.

  • Content: The main content or message of the notification.

  • Duration: How long the notification should be displayed (in milliseconds).

  • Type: The notification type (e.g., success, error) that may affect its appearance.

  • Position: Where on the screen the notification will appear (e.g., top-right, bottom-left).

For Developers

If you’re integrating FL-Notify into custom scripts or mods, you’ll primarily interact with the fl:notify server event and the Notify client export as described above.

Conclusion

FL-Notify offers a robust solution for displaying notifications within the FiveM environment, providing server owners and developers with the tools needed to enhance player communication and engagement. By following the guidelines outlined in this document, you can seamlessly integrate FL-Notify into your FiveM server or custom scripts.

For further customization options or support, please refer to the official FL-Notify documentation or contact support.

Support me

Or use it for free

Code is accessible yes
Subscription-based No
Lines (approximately) 150
Requirements no
Support no
7 Likes

gread work, maybe a preview video?

Hey thanks first of all :slight_smile: its a good idea to add a video. Ill do it after work tomorrow!

thank you. can you turn your discord bot online, i cant verify me.

Ohh its cause I dont use that discord anymore haha. Feel free to dm me haha

Good script but could you indicate in more detail which scripts need to be replaced, I cannot locate the server and when I place it in client it does not execute anything.
Could you please help me, I tried to search your discord but the links are down? I’m from esx

Hello , ive added a readme

1 Like

hi , i really liked your notify script. is it possible you can do a guide on how to change the ox lib notify as well?