ImperialHost.cc · Guides · Roleplay and shooters
Set up a FiveM server with txAdmin
txAdmin is a web interface for running a FiveM server. It walks you through installing the QBCore or ESX framework, creates the tables in the database and keeps the server running.
Before you start
- A FiveM server with us.
- A Cfx.re account (it is free).
- A free database in your plan, txAdmin installs the framework into it.
1. License key
- Sign in at portal.cfx.re, create a new key for your server and copy it.
- In the game panel open the Startup tab and paste the key into FIVEM LICENSE. It saves by itself.
2. Turn on txAdmin
- On the Startup tab switch on ENABLE TXADMIN.
- The txAdmin port is in TXADMIN PORT (it can't be changed). You also find it on the Network tab.
- On the Console tab click Restart (the circular arrow at the top near the server's name) and wait until the console prints the PIN for the first sign-in.
3. Set up the server in txAdmin
- First create a database on the Databases tab: New Database, type for example
fivemin Database Name and click Create Database. Its details are behind the eye icon. - In your browser open
http://node1.imperialhost.cc:with the port from TXADMIN PORT, for examplehttp://node1.imperialhost.cc:30121. Enter the PIN, link your Cfx.re account and set a txAdmin password. - In the wizard pick a recipe (QBCore or ESX) and paste the license key. For the database fill in the host and port from the Endpoint field (for example
10.10.10.118and3306), the user from Username, the password from Password and the full database name (for examples123_fivem). - Wait until txAdmin has installed the recipe, then start the server.
The txAdmin connection is not encrypted: use a password you don't use anywhere else.
4. Join from the game
- The server's address is in the client area on the service's page under IP address, for example
node1.imperialhost.cc:30120. - Start FiveM, press F8 and type
connect node1.imperialhost.cc:30120with your port.
Troubleshooting
A restart takes a long time
With txAdmin on, restart and stop the server in txAdmin. A restart or stop from the game panel takes longer while txAdmin is on.
The server says the license key is invalid
Check that FIVEM LICENSE holds the whole key without spaces and that the key is valid on portal.cfx.re. Then restart the server.
The recipe says the tables already exist
The database is not empty, for example after an earlier try. Create a new database and use it, or empty the old one in phpMyAdmin: Manage your database in phpMyAdmin.
Still stuck?
Message us on Discord. The AI assistant Aurel answers first, and you can call an admin. Or open a ticket in the client area.