Monitor your FiveM server console for errors and send them directly to a Discord channel using webhooks. This tool helps server administrators get real-time notifications of issues, making debugging and server management more efficient.
- This is not a FiveM Script, it is a python script that will run your FiveM server and check the console for errors.
- Python 3.x installed on the machine where the FiveM server runs.
requests
library for Python. Install it using:pip install requests
- git clone https://github.com/korivash/FiveM-Error-Logs.git
- cd fivem-error-monitor
- Open the monitor_fivem.py script in a text editor. Modify the following lines:
FIVEM_SERVER_EXECUTABLE_PATH = 'path_to_your_FXServer_executable'
DISCORD_WEBHOOK_URL = 'your_discord_webhook_url'
- Replace
path_to_your_FXServer_executable
with the path to your FiveM server's executable (FXServer.exe).Replace your_discord_webhook_url
with the webhook URL from your Discord server.
- python monitor_fivem.py
-
Start the Monitor: Every time you want to run your FiveM server and monitor it for errors, simply run the monitor_fivem.py script.
-
View Errors in Discord: When the script detects an error in the FiveM server console, it will send a detailed embed message to the Discord channel associated with the webhook. This embed will contain the error message, a timestamp, and other relevant details.
-
Stop the Monitor: To stop the monitor, simply press CTRL+C in the terminal where the script is running.