You decide which services we may enable for analytics, personalization, and external content.
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.2
Learn how to import a ready-made Server Base to your own server with txAdmin for quick setup and seamless integration → Learn more
10 November 20265 min read1 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—provided you follow a few important requirements and details. In this guide, we’ll show you how to import a Server Base.
FAQ
Frequently asked questions
The server configuration file server.cfg (required), the resource folder resource (required), and optionally an SQL file containing the database structure.
Use FTP: connect to your game server, navigate to the fivem folder, create a folder for your Server Base, and upload the resource folder and server configuration.
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.
Navigation
FiveM
Preparation
Before you can start setting things up, you need to have downloaded a ready-made Server Base from the internet to your PC and extracted the file.
The contents of a Server Base can vary depending on the server type and its contents, so the files may look different. However, your Server Base should generally contain the following:
Server configuration - server.cfg (required): The server configuration file contains all the relevant commands/settings for your server.
Resource folder - resource (required): The resource folder contains all the ready-made resources used in 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 data (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 provided by us.
Server files
Upload your Server Base data 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 there for your Server Base 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 data. 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 your database as described in the guide. Before you do, make sure you’ve adjusted 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 contents of the SQL file before importing
Make sure the contents of the SQL file have been adjusted and are completely correct before importing it. Otherwise, you’ll see the following error message:
Access denied for user ‘zapXXXXX-X’@’%’ to database ’originalDatabaseName’
txAdmin setup
You’ve now finished preparing to set up the server. The rest of the server’s setup, installation, and configuration takes place through the setup process in the txAdmin interface. 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 is not intended for the server list; it is only used within the txAdmin interface and for chat/Discord messages. Continue to the Deployment Type step.
Deployment Type
Under Deployment Type, select how you want to set up your server. You have the following options: 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 folder structure starts as follows and must be extended with the name of your Server Base: /home/zapXXXXX/gXXXXXXXX/fivem/ExampleServer.
You can simply copy and paste the folder structure provided, as shown in the screenshot, and then add the name of the Server Base folder you created earlier. The result should look like this:
Click Next. The server configuration file server.cfg should now be detected. Confirm this and complete the standard setup by clicking the Save & Start Button.
Configuration
It’s very likely that the server won’t start because not all the required information is correct. This may be due to incorrect server IP address and port details, missing database information needed to connect successfully 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 looks like this:
Replace the IP address (0.0.0.0) and port (30120) with your server’s details. You can find them in your server’s game server management panel.
Warning
Incorrect IP address/port
If the details you configured are incorrect, 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 allow your server to connect to the database, you must add a MySQL connection string with the database details to 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 include the required database details, you’ll need to add and configure it. You can find the database details 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
Keep it simple
If you want to skip this step, you can click the Reconfigure MySQL connection string button at the bottom of Configuration in your game server management panel.
Onesync
If the server.cfg file in your Server Base 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 need your own license key from CFX. For instructions on how to create one, see the following guide: Your own license key
Add the license key to the server configuration file:
Code
sv_licenseKey "deinLizenzschluesselHier"
Conclusion
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.