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
tar xf fx.tar.xz
rm -rf fx.tar.xz
apt install git -y 
git clone
cd cfx-server-data 
mv server.txt server.cfg
sudo apt install gnupg ca-certificates
sudo apt-key adv --keyserver hkp:// --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb 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/ +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/ +exec server.cfg

30 Users Found This Useful

Was this answer helpful?

Powered by WHMCompleteSolution