With the ZapX AI Agent, you manage your FiveM server through chat. Describe what you want, for example, “Install this script from GitHub” or “Why won’t ox_inventory start?” The agent reads logs, server.cfg, and resource files, finds the cause, and prepares the appropriate changes. It always asks you first before changing anything on your server.
In this guide, you’ll learn what the agent can do on your FiveM server, how confirmation works, and what its limitations are.
- ZapX Pass: The ZapX AI Agent is included with every tier of the ZapX Pass, starting with Plus.
- AI quota: Each tier comes with a monthly AI quota. You can see how much you’ve used in the chat, next to the input field. If you run out, your quota will renew automatically on the renewal date.
- txAdmin: Most FiveM features require your server to be running in txAdmin mode, which is the default at ZapX. See FiveM: txAdmin Setup.
Open your FiveM server in the web interface and click ZapX AI Agent in the sidebar. The chat already knows your server, so you don’t need to explain anything. Just describe what you need in your own words.
The agent distinguishes between reading and making changes:
- Reading (viewing logs, files,
server.cfg, database tables, and the player list) happens immediately, without asking you. - Making changes (writing files, extracting scripts, running SQL, restarting the server) is only prepared. You’ll see a card showing exactly what will happen. It’s only carried out after you click Confirm. Click Decline to discard the suggestion.
For multiple related steps, such as extracting a script, importing SQL, and adding an ensure entry, the agent presents them together on one card. They’re then carried out one after another.
At the bottom of the chat, you’ll find the Apply file changes automatically toggle. When it’s on, the agent writes files in this chat without showing a card, but you can undo each change with Undo. You’ll still need to confirm settings changes, deletions, SQL, and restarts yourself.
If your server won’t start, a script is missing in-game, or joining takes forever, tell the agent what’s going on. It reads the console and logs, checks server.cfg and your resources’ fxmanifest.lua files, and can run a server diagnosis that checks the status, logs, configuration, and processes in around 20 seconds. It can also check whether your server appears in the Cfx.re server list and show findings from the security scan. For more information about common causes, see FiveM: Common Issues.
Give the agent a download link, such as a GitHub release ZIP. Before extracting it, the agent checks the README, fxmanifest.lua, and any included SQL files, then checks the dependencies (such as ox_lib or PolyZone). It then presents a card to extract the script to the resources folder, import SQL if needed, and add an ensure entry to server.cfg. If the ZIP is on your PC, upload it in the Files tab and the agent will take care of the rest. Learn more: FiveM: Install Resources.
If the console reports Table '...' doesn't exist or Unknown column, a script’s SQL file is usually missing. The agent reads the file, makes it safe to use with an existing database, and presents it in an Run SQL Script card. The card lists each statement and says whether a database backup will be created first. Statements that delete data, such as DROP or DELETE, require a second confirmation marked in red. See also FiveM: Import an SQL File.
If oxmysql reports error 1045 or EHOSTUNREACH, the set mysql_connection_string line in server.cfg is no longer correct. The agent fixes it using a card. The username and password are shown there only in masked form as [configured]; ZapX inserts the actual credentials only when you confirm. The server won’t restart automatically, and the agent will ask you first. Learn more: FiveM: Fix Database Connection Issues.
When you install a framework using a recipe in txAdmin, the database fields in the Input Parameters step are already filled in with the primary database. This database must be empty. The agent creates a new database for you and sets it as the primary database using the Set Primary Database card. If the server is running, it will restart. The Delete Database toggle in txAdmin doesn’t empty the database on our servers.
You don’t need to restart the whole server after changing a script. The agent prepares a Restart Resource card, which runs refresh in txAdmin and then ensure for that specific resource. Your players stay connected. You’ll also need to restart any resources that depend on it.
To restart individual resources, ZapX signs in using the credentials shown on the txAdmin card in your dashboard. If you change the password directly in txAdmin, the card will fail. To set your own password, use Custom Password in the dashboard. Use Reset Password to restore access.
The agent changes configurations and text in your resources, including across multiple files. For example, you can ask it to “Translate the menu into German” or “Change all the prices in the shop.” It reads all affected files first. If you’re using scripts for a different framework (for example, QBCore scripts on a Qbox server), it’ll tell you what needs to be adapted.
The agent can start, stop, or restart your server and create schedules on request, such as a daily restart. A regular restart already installs the latest build from your FXServer channel. To change the channel itself (Recommended, Latest, or a specific version), go to the Configuration tab and use the FXServer Version card.
The agent searches, reads, and edits files; inspects archives without extracting them; extracts .zip and .tar files (up to 500 MB); and creates .zip archives from folders. It shows your SFTP credentials without the password, resets your SFTP password, and fixes file permissions.
The agent creates backups, restores them, deletes old ones, or prepares one for download. A backup includes server files, but not databases. Back up databases in the Databases tab. The agent can also create new databases there, show connection details (without the password) along with a phpMyAdmin link, and read tables—for example, to check a character’s saved job.
If your server’s IP is on a blocklist, for example with some routers from US providers, the agent can replace it with a clean IP using a card. The ports stay the same, ZapX automatically updates endpoint_add_* in server.cfg, and the server will be offline for about a minute. This can be done at most once every 30 days and only by the server owner.
- It doesn’t send console commands to FiveM because the console belongs to txAdmin. To use it, open txAdmin from the txAdmin card in the dashboard and use the live console there.
- It doesn’t update txAdmin itself. Set the version using FXServer Version.
- It never shows SFTP or database passwords in the chat, and you don’t need to send them to the agent.
- It can download
.rarand.7zarchives, but can’t extract them. - It can’t open additional ports.
- “Install this script: github.com/…/releases/latest”
- “The console says Table 'player_vehicles' doesn't exist. Fix it.”
- “oxmysql reports error 1045. Fix the database connection.”
- “Restart qb-garages.”
- “Translate the menu in my tuning script into German.”
- “Restart the server every day at 5 AM.”
If you ask for help in the support chat, Zappy can use the same tools once your ticket is linked to the server. You can read logs, run the diagnosis, restart the server, or fix file permissions there without a ZapX Pass. You’ll need a ZapX Pass to change files, database connections, resources, and backups. Only the agent in the panel can import SQL files.
You now know what the ZapX AI Agent can do on your FiveM server and how to approve each change yourself. For an overview of all the sections in the panel, see FiveM: Dashboard Overview. If you have any further questions, our support team is available every day to help! 🙂