FX-Server is lastly right here! Stability updates, elevated playercaps, extra natives, options, and a lot extra stuff that also must be documented haha! The longer term is now!

Hi there, that is an in-depth and “Noob Pleasant” information on how one can set up FiveM’s newest FX-Server on a totally contemporary Linux set up.

I’m going to imagine you understand how to SSH / FTP into your server for the whole lot of this tutorial.

Please learn every step fastidiously earlier than asking for troubleshooting assist <3


apt-get replace && apt-get improve

Step 1) Setting Up Your FiveM Server!

Alright, comply with alongside precisely. We’re going to attempt to keep in the identical listing in order that there is no such thing as a confusion. Lets begin with:

cd ~

That’ll take you to your root listing. Subsequent, lets navigate to the place the place we’re going to put in the server.

The house listing the place the server shall be saved.

cd /residence/

Navigate right here and replica the URL to the newest model of FiveM Linux Server.

Subsequent you’ll need to obtain the newest model of FiveM Server from that hyperlink utilizing wget -url- command:

wget https://instance.com/file.zip

Clearly change the URL to the one you discovered within the repo above.

We’re gonna need to make this all neat and stuff, so lets create a listing to retailer the server:

mkdir fx-server


mkdir fx-server-data

Alright, so subsequent we’re gonna unpack this file. Achieve this by typing the next:

tar -xvf fx.tar.xz -C /residence/fx-server/

And that’ll unpack the FX-Server binaries for you, subsequent we have to seize the sources and whatnot. Lets navigate again to our principal folder.

cd /residence/

You possibly can seize the sources by typing the next:

git clone https://github.com/citizenfx/cfx-server-data.git fx-server-data

You’re almost completed. Lets get into that cfx-server-data folder by typing:

cd fx-server-data

and now we have to create our very personal server.cfg. Achieve this by typing:


Subsequent, you’ll need to copy this huge chunk of textual content and paste it into the SSH consumer. (You are able to do so by proper clicking wherever contained in the display screen)

# you in all probability do not need to change these!
# solely change them should you're utilizing a server with a number of community interfaces
endpoint_add_tcp ""
endpoint_add_udp ""

begin mapmanager
begin chat
begin spawnmanager
begin fivem
begin hardcap
begin ■■■■■■■

sv_scriptHookAllowed 1

# change this
#rcon_password yay

sv_hostname "My new FXServer!"

# nested configs!
#exec server_internal.cfg

# loading a server icon (96x96 PNG file)
#load_server_icon myLogo.png

# convars to be used from script
set temp_convar "hey world!"

# disable asserting? filter out the grasp by uncommenting this
#sv_master1 ""

# need to solely enable gamers authenticated with a third-party supplier like Steam?
#sv_authMaxVariance 1
#sv_authMinTrust 5

# add system admins
add_ace group.admin command enable # enable all instructions
add_ace group.admin command.give up deny # however do not enable give up
add_principal identifier.steam:110000112345678 group.admin # add the admin to the group

# participant endpoint safety
sv_endpointprivacy true

After you seize that giant chunk of textual content you’ll need to press the keys


Which is able to write-out of the file, and can immediate you to enter a reputation. You NEED to call this file:


Observe up by urgent Enter and utilizing the command:


To exit the file.

Congratulations FX-Server is technically setup. I wont be going over how all of the server.cfg variables work, that info ought to, in some unspecified time in the future, be out there right here: LINK

Step 2) Including Assets / Mods

Alright, so that you need to add mods to your server, proper? You will have two choices. You possibly can manually develop them on Linux, which is a ache within the arse, or you possibly can develop them on an area fx-server, which is certainly the perfect strategy. I’m going to indicate you the way I replace sources after I’ve completed testing them on my native machine.

Lets open up Filezilla and connect with our server. I’m not going to be educating how one can FTP into servers, however you need to navigate to your native useful resource you need to copy over, and the /residence/fx-server-data/sources/ folder like such:

Simply drag and drop them in, and you should definitely add them to your server.cfg by including

begin resourcename

Right here’s a check useful resource so that you can attempt your self. It’s a easy ragdoll script for whenever you Press X.

ragdoll.7z (536 Bytes)

You should definitely add

begin ragdoll

to your server.cfg :slight_smile:

Step 3) Updating your certs!

Fortunately this final step is tremendous easy, however crucial. Should you get a TrustFailure challenge whenever you attempt to be part of your server, it’s since you didn’t comply with this step!

You’ll need to sort:

sudo cert-sync /and so on/ssl/certs/ca-certificates.crt

Adopted by,

apt-get replace && apt-get improve

Step 4) Working Your Server!

Now you can begin your server by navigating to your cfx-server folder:

cd /residence/fx-server-data/

and typing:

bash /residence/fx-server/run.sh +exec server.cfg

You may as well shut the server by urgent the command:


You’ll discover at this level you could depart your SSH session open to maintain the server energetic. You possibly can repair that by following Step 4.5 which is elective however in my view extraordinarily essential.

Step 4.5 (Optionally available)

Alternatively, you possibly can run your server in a… digital SSH session, which is able to assist you to drop out of the primary session with out the server robotically closing. You are able to do so by typing:

display screen

This may immediate you to press your SPACE key just a few instances, however on the whole whenever you get into the brand new “Display”, every part will look comparatively acquainted. The distinction is this can be a digital display screen.

You possibly can once more, on this session, navigate to your server folder and run the server from right here. The distinction being whenever you depart it’ll stay operating. To exit this session, you possibly can merely press the command:

CTRL + A + D

And to rejoin the session whenever you’re again on the principal terminal you possibly can press the command:

display screen -r


That ought to be it! You at the moment are the proud proprietor of a contemporary and functioning FiveM server operating the newest and best FX-Server! In case you have any questions, considerations, or points, let me know within the feedback and I’ll ultimately get again to you! I hope you take pleasure in FX-Server and luxuriate in all the brand new options that include it!

Credit and reference goes to:

And anybody / anything I could have missed!

Thanks for getting this far. Have an incredible day!

Looking for a FiveM Server host? Click here