> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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

1. 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**.

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/vaqsubs_1it4rvf.png)

2. 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`. 

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/ermaeoj_vd9uff.gif)

3. 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/`

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/6xqxn8n_11r36jt.gif)

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

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/wcbdcpe_1wuat96.gif)

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

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/w0e0yrh_16f5tti.gif)

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

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/elgpago_1tm0gcu.gif)

# Accessing TXAdmin

1. 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`.

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

![](https://storage.crisp.chat/users/helpdesk/website/a79efd0b48a91800/rzpiuyt_1nm9lkr.gif)

3. Follow the steps on TXAdmin, and your done!

---

If you require any further assistance, please create a ticket [here](https://billing.sparkedhost.com/submitticket.php).

---

Created By: Greg K