Knowledgebase

How to Setup FiveM FX Server on your Linux Root Server

To be updated...

Copy the following commands one by one in your SSH Putty Session

sudo apt-get update
cd /root
mkdir fivem
cd fivem
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/1332-537d595a2e5044e46e7286f4268cc395f09da2af/fx.tar.xz 
tar xf fx.tar.xz
rm -rf fx.tar.xz
apt install git -y 
git clone https://github.com/citizenfx/cfx-server-data.git
cd cfx-server-data 
wget https://gamehosting.co/server.txt 
mv server.txt server.cfg
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
cert-sync /etc/ssl/certs/ca-certificates.crt 
apt-get install mono-complete -y 
cd /root/fivem/cfx-server-data 
screen -dmS fivem 
screen -r fivem 
bash /root/fivem/run.sh +exec server.cfg

To stop your FiveM server attach to the same screen with screen -r fivem then press CTRL + C to kill your server.
Start your FiveM Server again with

cd /root/fivem/cfx-server-data
screen -dmS fivem
screen -r fivem
bash /root/fivem/run.sh +exec server.cfg

30 Users Found This Useful

Was this answer helpful?

Powered by WHMCompleteSolution