Create a FiveM server
Guide on how to create a FiveM server using txAdmin
Creating a FiveM server
This guide will show you exactly how to setup a FiveM server with txAdmin in under 5 minutes!
This guide expects a certain level of understanding when it comes to computers. If you have never worked with Linux, I advise you to either learn it yourself or to stick to Windows.
This guide is written for the Ubuntu distribution. You can still follow it if you are using another one, but some things may not exactly be the same. Google is your friend in that case!
Prerequisites
The packages that we will be using in this guide may not automatically be installed on your system. Below I will put a few popular distro's and their command usages.
apt-get install wget
apt-get install tarapt install wget
apt install tardnf install wget
dnf install tardnf install wget
dnf install tarI use arch btw :3FXServer Cfx default
Creating the root folder
- Create a folder on your Linux machine with the following command:
mkdir server, you can call this folder whatever you want, I will call it "server" for now. - Now go to that directory using the
cdcommand:cd server - Once again, create a folder, this one we will call "FXServer". I also recommend to leave the name like that as it's used very often.
cd FXServer
Installing
- Because we are already in the FXServer folder now, we will perform the following command, its the
wgetcommand in Linux which is essentially a command-line utility for downloading files from the web. - On your PC you need to browse to this url. Here you should find the artifact with the highest number. Right click this artifact and press "Copy link"
- We will be combining the
wgetcommand and the URL we just copied to install the artifacts to our Linux machine. - Go back to your Linux machine, type
wgetin your terminal followed by the URL you just copied, in my case this is: this one - It should look like this
- If you press Enter, you will see that your Linux machine will start installing
fx.tar.xzto the FXServer folder. - If performed correctly, this should be the result.
Checking if the artifact has been installed
- To make sure that we actually installed the artifact correctly, we run the command
ls, which lists all files/folders in a directory. this should be the result.
Extracting the tar file
- In the command line you type the following command:
tar xf fx.tar.xz, now press Enter. This command unpacks the archived content of the tar file. - Now you should have 2 extra items here, a folder called
alpineand a file calledrun.shlike this - Once we have verified that we have
alpineandrun.sh, we can safely deletefx.tar.xzusing the following command:rm fx.tar.xz. If you typelsagain, it should only show thealpinefolder and therun.shfile. see
Starting the FXServer
- In the Linux terminal type the following:
./run.sh - You will now see the following: here
Accessing txAdmin on the web
-
For this step it is required to have the txAdmin port forwarded, by default this is
40120. -
To acces txAdmin on the web you will need to browse to
http://ip:40120 -
If you did that, you will now see the following page: like this
-
In the console that just opened after starting
run.shyou will find a pin consisting of 4 digits. You need to fill these 4 digits in on the txAdmin webpage. -
Click Link Account
-
If you do not have one, create a Cfx.re account, if you have one, click Continue
-
Now you should see the following, create a password, confirm it 1 more time, accept the "Creator PLA" and click "Register"
Make sure to write this password down somewhere!
- Once you are at this page click "Go to the setup page!" in the top left corner.
- Click "Next"
- Make a short server name for txAdmin
- Click Popular recipes
- Click CFX Default FiveM
- On the "Data Location" step just click "Save"
- Finally click "Go to recipe deployer"
- Click "Next"
Cfx Portal
- Now you will need your Cfx license key
- Click Sign in with Cfx.re
- In the navigation bar of the Portal, click Servers
- Click the button that says "Generate key", it should look like this
- Display name: Whatever you want, we will call it "Test Server" for now.
- It should now look like this
- Click "Generate".
- On the "Server Registration Keys" section you will find your newly created Cfx license key. Hover over your new key and find the "copy" button under "actions" like as shown here
Do not share this key with anyone else!
txAdmin
- Go back to txAdmin and paste the key, then click "Run Recipe".
- Once the recipe is done executing, click "Next".
- Scroll down and click "Save & Run Server".
- If you have forwarded the port 30120 for FXServer, you should now be able to join the server!
FXServer ESX Legacy
Creating the root folder
- Create a folder on your Linux machine with the following command:
mkdir server, you can call this folder whatever you want, I will call it "server" for now. - Now go to that directory using the
cdcommand:cd server - Once again, create a folder, this one we will call "FXServer". I also recommend to leave the name like that as it's used very often.
cd FXServer
Installing
- Because we are already in the FXServer folder now, we will perform the following command, its the
wgetcommand in Linux which is essentially a command-line utility for downloading files from the web. - On your PC you need to browse to this url. Here you should find the artifact with the highest number. Right click this artifact and press "Copy link"
- We will be combining the
wgetcommand and the URL we just copied to install the artifacts to our Linux machine. - Go back to your Linux machine, type
wgetin your terminal followed by the URL you just copied, in my case this is: this one - It should look like this
- If you press Enter, you will see that your Linux machine will start installing
fx.tar.xzto the FXServer folder. - If performed correctly, this should be the result.
Checking if the artifact has been installed
- To make sure that we actually installed the artifact correctly, we run the command
ls, which lists all files/folders in a directory. this should be the result.
Extracting the tar file
- In the command line you type the following command:
tar xf fx.tar.xz, now press Enter. This command unpacks the archived content of the tar file. - Now you should have 2 extra items here, a folder called
alpineand a file calledrun.shlike this - Once we have verified that we have
alpineandrun.sh, we can safely deletefx.tar.xzusing the following command:rm fx.tar.xz. If you typelsagain, it should only show thealpinefolder and therun.shfile. see
Starting the FXServer
- In the Linux terminal type the following:
./run.sh - You will now see the following: here
Accessing txAdmin on the web
-
For this step it is required to have the txAdmin port forwarded, by default this is
40120. -
To acces txAdmin on the web you will need to browse to
http://ip:40120 -
If you did that, you will now see the following page: like this
-
In the console that just opened after starting
run.shyou will find a pin consisting of 4 digits. You need to fill these 4 digits in on the txAdmin webpage. -
Click Link Account
-
If you do not have one, create a Cfx.re account, if you have one, click Continue
-
Now you should see the following, create a password, confirm it 1 more time, accept the "Creator PLA" and click "Register"
Make sure to write this password down somewhere!
- Once you are at this page click "Go to the setup page!" in the top left corner.
- Click "Next"
- Make a short server name for txAdmin
- Click Popular recipes
- Click ESX Legacy
- On the "Data Location" step just click "Save"
- Finally click "Go to recipe deployer"
- Click "Next"
Cfx Portal
- Now you will need your Cfx license key
- Click Sign in with Cfx.re
- In the navigation bar of the Portal, click Servers
- Click the button that says "Generate key", it should look like this
- Display name: Whatever you want, we will call it "Test Server" for now.
- It should now look like this
- Click "Generate".
- On the "Server Registration Keys" section you will find your newly created Cfx license key. Hover over your new key and find the "copy" button under "actions" like as shown here
Do not share this key with anyone else!
txAdmin
- Go back to txAdmin and paste the key, then click "Run Recipe".
- Since we are using a framework, we are required to use a database, first follow this guide and then continue with the current guide.
- Once the recipe is done executing, click "Next".
- Scroll down and click "Save & Run Server".
- If you have forwarded the port 30120 for FXServer, you should now be able to join the server!