Setting up a FiveM Server Status bot with txAdmin is a great way to monitor and manage your server efficiently from your discord server. txAdmin is a full-featured web panel that comes preinstalled with FXServer, making it easier to manage your server. This guide will walk you through the process of setting up a server status bot using txAdmin.
Prerequisites
– A txAdmin FiveM server (if your server runs directly with a .bat file, this setup won’t work).
Step 1: Create a Discord Bot
– Visit the Discord Developer Portal: Go to Discord Developer Portal.
Create a New Application:
– Click on “New Application”.
– Give your application a name.Set Up the Bot:
– Go to the “Bot” section.
– Click “Add Bot” and confirm.
– Give your bot a name and profile picture.Enable Server Members Intent:
– Turn on the “SERVER MEMBERS INTENT”.
– This is required for your bot to receive events listed under GUILD_MEMBERS.Generate and Save the Token:
– Save the token generated for your bot. You will need this later.
Step 2: Invite the Bot to Your Server
Copy the Application ID:
– Find the Application ID in the “General Information” section.Create an Invite Link:
– Replace
– Use this template:https://discord.com/api/oauth2/authorize?client_id=123456789012345678&permissions=0&scope=bot%20applications.commands
123456789012345678
with your Application ID.Invite the Bot:
– Paste the modified link into your browser and invite the bot to your Discord server.
Step 3: Configure txAdmin
Login to txAdmin:
– Run txAdmin and log in to your admin account.Navigate to Settings:
– Go to the “Settings” tab.Discord Bot Section:
– Click on “Enable Bot”.
– Paste the bot token into the “Token” field.
– Add your Discord server ID in the “Guild/Server ID” field.Announcements:
– (Optional) Add your channel ID if you want to receive announcements and notifications like server restart.
– Customize the “Status Embed” using the JSON editor.
JSON Configuration
Embed JSON Editor
This file defines the information displayed in the Discord embed. You can customize:
– Title and Description: Set the server name and a description.
– Fields: Include status, player count, connect command, next restart, and uptime.
– Images: Set URLs for an image and thumbnail.
Embed Config JSON Editor
This file defines the status colors and buttons. You can change:
– Status Strings and Colors: Customize the online, partial, and offline statuses and their corresponding colors.
– Buttons: Modify the buttons’ emojis, labels, and URLs.