Articles on: Dedicated Servers / VPS

How to setup a FiveM server on your VPS (Linux)

FiveM is a modification for Grand Theft Auto V enabling you to play multiplayer on customized dedicated servers, powered by Cfx.re. In this article, we will teach you how to setup your own FiveM server on a Linux VPS.

Downloading FiveM Server Artifact



Head over to the Linux FiveM server artifacts page. You can either click on the latest recommended button OR select the latest version. However, if you would like to have the latest version of TXAdmin for your server, please select the 6230 artifact version. In this case, we will download the latest version.



Right click the artifact download link and click "Copy Link". Now head over to your linux VPS and type in the following command: wget <link>. In our case, the command we will use is wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/6352-493a89d898190a3015769ed6a07068d5752bd548/fx.tar.xz.



Now type the following command mkdir fivem. This will create the fivem directory. Now move the file we just downloaded into the folder by using the mv command. In this case, the command we will use is mv fx.tar.xz fivem. Then, head into the directory using cd fivem/



Now extract the file by using the tar command. In this case, the command is tar -xvf fx.tar.xz.



We will need to set the ./run.sh script as an executable. To do this, run the command chmod +x ./run.sh



Lastly, simply run the ./run.sh script in the terminal.



Accessing TXAdmin



Head over to the TXAdmin dashboard by entering the IP of your VPS followed by the port 40120. This is the default port for TXAdmin. For example 1.2.3.4:40120.

Enter the PIN that shows up in the console of the VPS, like so.



Follow the steps on TXAdmin, and your done!


If you require any further assistance, please create a ticket here.


Created By: Greg K

Updated on: 21/03/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!