Skip to content

FiveM: How to Manage Your Server with the ZapX AI Agent

Install scripts, import SQL, connect your database, and restart resources. Learn how to manage your FiveM server through chat with the ZapX AI Agent.

29 November 20266 min read0 Views0 helpful

Don't have your own server yet? Host your FiveM server with ZAP-Hosting from €5.29 / month.Or try 3 days from €0.95

Introduction

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.

Requirements

  • 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 the ZapX AI Agent

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.

How confirmation works

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.

Tip: Automatically apply file changes

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.

What the agent can do on your FiveM server

Find errors and check your server

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.

Install scripts

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.

Import SQL files

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.

Fix the database connection

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.

Prepare a database for a Qbox or ESX recipe

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.

Restart an individual resource

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.

Info: txAdmin password

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.

Customize scripts

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.

Start, stop, and restart your server and change the FXServer version

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.

Files and SFTP

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.

Backups and databases

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.

Get a new IP if your address is blocked

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.

What the agent can’t do

  • 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 .rar and .7z archives, but can’t extract them.
  • It can’t open additional ports.

Example requests

  • “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.”

Also available in the support chat: Zappy

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.

Conclusion

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! 🙂

Free tools

FiveM Tools

View all

FAQ

Frequently asked questions

Yes. The agent is included with every ZapX Pass tier, starting with Plus. Zappy can also help in support chat without a pass, but you’ll need one there too to make changes to your server.
No. The agent never sees your passwords. For database connections, ZapX inserts your credentials directly into server.cfg only after you confirm.
No. The Restart resource card restarts only that resource through txAdmin, so players stay connected.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.