-
Description:
-
The Lua script above is a FiveM server-side script that manages a “kill leaderboard” within ESX Legacy FiveM servers.
-
The leaderboard lists those players who have committed the most kills on the server. Additionally, the script transmits information via a Discord webhook to ensure that players and administrators are always up to date with the latest results and performances.
-
Benefits Provided by the Script:
-
- Competitive Gaming Experience: The leaderboard fosters a competitive atmosphere among players striving to achieve and maintain the title of most kills on the server.
-
- Community Cohesion: The leaderboard and Discord webhook create an opportunity for the community to celebrate top players together and share gaming experiences.
-
- Customization: The script offers numerous configuration options, allowing customization of the leaderboard and Discord messages to suit the server’s needs.
-
Configuration Options:
-
- WebhookMSGTimes: The interval for sending messages to the Discord webhook, in seconds.
-
- discordWebhook: The URL of the Discord webhook where messages are sent.
-
- title, footer, color, description: Title, footer, color, and description of the Discord message sent.
-
- NrUsers: The maximum number of players displayed in the message.
-
- displayBanner, bannerurl: Configuration for displaying a banner and specifying its URL.
-
- whitelist: Identifiers of players whose data is exempt from leaderboard processing.
-
- texts: Localization settings for Discord messages.
-
Operating Principle:
-
- The script monitors kills between players on the server.
-
- After each kill, it updates the killer’s position on the leaderboard in the database.
-
- Periodically, it checks for changes in the leaderboard, updates it, and sends the information to the Discord webhook.
-
- The script customizes Discord messages and the leaderboard based on configuration settings.
-
- Through the Discord webhook, server administrators and players stay informed about the latest results and performances.
- |-------------------------------------|----------------------------|
- | Code is accessible | No |
- | Subscription-based | No |
- | Lines (approximately) | 350|
- | Requirements | ESX Legacy/ SQL|
- | Support | Yes|
- |-------------------------------------|----------------------------|
