DE
deputyryan32/DM-ServerStatusPingFiveM
Sends periodic pings to a status logger endpoint like BetterStack.
DM-ServerStatusPingFiveM
DM-ServerStatusPingFiveM is a FiveM script designed to enhance your server's uptime monitoring by pinging a status logger endpoint (e.g., BetterStack) and sending notifications to a Discord channel. This ensures your server status is always accurately monitored.
Features
- Ping Status Logger: Automatically pings a provided URL at regular intervals for uptime tracking.
- Discord Integration: Sends status notifications to a Discord Webhook.
- Alternating Pings: Alternates between sending pings to the logger endpoint and Discord notifications.
- Configurable Intervals: Easily adjust the ping frequency in the configuration file.
- Custom Headers: Supports custom headers (e.g., API tokens) for added flexibility.
- Lightweight: Minimal resource impact on your server.
Installation
-
Download and Extract:
- Download the script and place the folder
DM-ServerStatusPingFiveMinto yourresourcesdirectory.
- Download the script and place the folder
-
Configure:
- Open the
config.luafile. - Replace
Config.StatusLoggerURLwith your status logger endpoint (e.g., BetterStack heartbeat URL). - Replace
Config.DiscordWebhookURLwith your Discord Webhook URL. - Adjust
Config.PingInterval(in milliseconds) to set the frequency of pings. Default is 1 minute (60000ms). - Add or modify headers in
Config.StatusLoggerHeadersandConfig.DiscordHeadersif required.
- Open the
-
Add to Server Configuration:
- Open your
server.cfgfile. - Add the following line:
ensure DM-ServerStatusPingFiveM
- Open your
-
Start the Server:
- Start your FiveM server to initialize the script.
Notes
- The script alternates between sending pings to the status logger and Discord notifications to optimize efficiency.
- Ensure the URLs and tokens provided in the
config.luafile are valid and active.
On this page
Languages
Lua100.0%
Latest Release
2.0January 15, 2025Apache License 2.0
Created November 19, 2024
Updated January 1, 2026