Learn how to import a ready-made Server Base to your own server with txAdmin for quick setup and seamless integration → Learn more
15 November 20265 min read22 Views0 helpful
Introduction
Have you found a ready-made server base online and want to upload it to your own server? No problem! With txAdmin, you can quickly and easily import a ready-made server base—as long as you meet a few important requirements and keep some details in mind. In this guide, we'll show you how to import a server base.
FAQ
Frequently asked questions
It should include the server.cfg server configuration file and a resource folder (both required), plus an optional SQL file containing the database structure.
Use FTP to connect to your game server, create a folder for your server base (in the main directory for ZapX game servers, or in the fivem folder in the Classic panel), then upload the resource folder and server configuration.
For ZapX game servers, use /data or /data/<server base folder name> (the configuration file is then at /data/<folder name>/server.cfg). In the Classic panel (Docker game server), use /home/server/<folder name>.
Import it into the database provided by ZAP-Hosting.
Feedback
Was this article helpful?
Your feedback helps us prioritize and improve content.
0 of 0 Users found this article helpful.
Personal support
Need more help than the guide provides?
Our ZAP 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.
You decide which services we may enable for analytics, personalization, and external content.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
We use cookies and similar technologies on our website to personalize content, embed external media, and better understand how individual areas are used.
Necessary cookies
These entries support essential functions such as security, stability, and form processing.
Optional sections
AnalyticsMarketingPersonalizationExternal media
Your data may be processed with your consent or on the basis of legitimate interests. In the cookie settings, you can reject or explicitly allow each optional category.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
You can reopen and change your selection at any time. · 1.0.3
Navigation
FiveM
Preparation
Before you can start setting things up, you must download a ready-made server base from the internet to your PC and extract the files.
The contents of a server base can vary depending on the server type and its contents, so the files may look different. In general, your server base should include the following:
Server configuration - server.cfg (required): The server configuration file contains all the relevant commands and settings for your server.
Resource folder - resource (required): The resource folder contains all the ready-made resources used by the server base.
SQL file - filenameXY.sql (optional): This file contains the ready-made database structure needed for the resources to work with and communicate with the database (if one is used).
The files (server.cfg, resources) from your downloaded server base must be uploaded to your game server. The SQL file must be imported into the ZAP database we provide.
Server files
Upload your server base files via FTP. If you're not sure how to do this, see our guide: FTP access
Connect to your game server via FTP and navigate to the fivem folder. Create a folder for your server base there if one doesn't already exist. In this example, the ready-made server base is called ExampleServer.
Once the folder has been created, upload the server base files. To do this, navigate to the folder you just created and upload the resource folder and your server configuration. The result should look like this:
Database
If your server base also requires a database, you must import the provided SQL file into your ZAP database. If you're not sure how to do this, see our guide: Import an SQL file
Import your SQL file into the database as described in the guide. Before doing so, make sure you've updated the contents of the SQL file and entered the correct name of your ZAP database. To do this, replace the original value in the Use '...' command with the name of your ZAP database.
Warning
Double-check the SQL file contents before importing
Make sure the SQL file has been updated and is completely correct before importing it. Otherwise, the following error message will appear:
Access denied for user ‘zapXXXXX-X’@’%’ to database ’originalDatabaseName’
Finish
Congratulations! Once you've uploaded the files, completed the txAdmin setup, and made the necessary changes to the server configuration, you can start your server and get going with your server base.
Server hosting from €2.49 / month, online instantly, DDoS protection included.
You have now completed the preparations for setting up the server. The rest of the server setup, installation, and configuration will be done through the txAdmin interface setup process. The following guide explains in detail how to access txAdmin and how the setup works: txAdmin setup
Welcome
Choose a name for your project. This name isn't intended for the server list; it's only used within the txAdmin interface and in chat and Discord messages. Continue to the Deployment Type step.
Deployment Type
Under Deployment Type, select how you want to set up your server. You can choose from Popular Recipes, Existing Server Data, Remote URL Template, and Custom Template. For your use case, select Existing Server Data.
Select paths
Next, specify the path to your server base. The correct path depends on where your server is running:
ZapX game server: The main folder you see via FTP/SFTP is located at /data on the server. If, for example, you uploaded your server base to the ExampleServer folder in the main directory, the path is /data/ExampleServer, and the server configuration is at /data/ExampleServer/server.cfg. If server.cfg and resources are directly in the main directory, enter /data.
Classic panel (Docker game server): The fivem folder visible via FTP is mounted on the server as /home/server. The path is therefore /home/server/ExampleServer (or /home/server/<folder name>), not the FTP path with g<ID>/fivem in front of it.
Configuration
Your server probably won't start because some required information isn't correct. This may be due to incorrect server IP address or port details, missing database information needed to connect to the database, or a missing license key. You'll therefore need to make some final changes to the server configuration to complete the setup.
Server details
By default, the IP address and port details are either missing or incorrect. Make sure the endpoint entries are present and correct in your server configuration file. The syntax is as follows:
Replace the IP address (0.0.0.0) and port (30120) with your server's details. You can find these in your server's game server management panel.
Warning
Incorrect IP address/port
If the details you configured aren't correct, you'll see the following error message:
Code
Line XX: [ZAP-Hosting] the 'endpoint_add_tcp' interface MUST be 'XXX.XXX.XXX.XXX'
Line XX: [ZAP-Hosting] the 'endpoint_add_udp' interface MUST be 'XXX.XXX.XXX.XXX'
Database
To connect your server to the database, you must specify a MySQL connection string with the database information in the server.cfg server configuration file. By default, it looks like this:
sql
set mysql_connection_string "mysql://username:password@dataBaseHostname/databaseName?charset=utf8mb4"
Whether a MySQL connection string like this already exists in your server configuration depends on the server base you're using. If it doesn't exist yet or doesn't contain the necessary database information, you'll need to add and update it. You can find the database information under Databases in your game server management panel. For example, it might look like this:
sql
set mysql_connection_string "mysql://zapXXXXXXX-X:yourDatabasePassword@mysql-mariadb-XX-XXX.zap-hosting.com/zapXXXXXX-X?charset=utf8mb4"
Tip
Warning
Use the exact folder name
Replace ExampleServer with the name of your server base folder. Uppercase and lowercase letters must match exactly.
Click Next. The server.cfg server configuration file should now be detected. Confirm this and complete the regular setup by clicking the Save & Start Button.
Keep it simple
If you'd like to skip this step, you can also click the Reconfigure MySQL connection string button at the bottom of Configuration in your game server management panel.
Onesync
If your server base's server.cfg contains Onesync information, remove it. Onesync is managed through the txAdmin interface settings instead. To enable it, go to Settings ⟶ FXServer.
License key
To run your server, you'll need your own CFX license key. For instructions on creating one, see this guide: Your own license key
Add the license key to the server configuration file: