FiveM is a modification for GTA V with a ton more features. The problem is that you need to set up a dedicated server to enjoy the game. Without the right instructions, you may end up with a server that crashes, or worse, doesn’t start at all. Our team of experts created this FiveM server setup guide to show you the sequences.

FiveM Server Setup

The first step is ensuring that you’ve registered a license key on the keymaster service. Also, make sure that you have the IP match the public IP where you’ll first use the key.

Follow Server Requirements

Before beginning your FiveM server Setup, ensure that your system meets the server requirements. You’ll need an Intel Core i5 @ 3.2GHz processor or its equivalent. You’ll also need 8GB RAM and 72GB HDD space.

system requirements from FIveM site

For Windows

Step #1: Create Folder for Download

Create a new folder in the root of your drive. A sample directory would be:

C:\FXServer\server

creating folders

Step #2: Download Master Branch

Now you need to get the master branch zip from the artifacts server. Extract it using any archiving tool to your FXserver folder.

Step #3: Make server.cfg

Next, clone your cfx-server-data in a new folder outside the server binaries folder. A sample directory would be

C:\FXServer\server-data

Also, make a serve.cfg file in your server files folder and copy the example under “Make server.cfg for Linux” below into the file.

Step #4: Apply FiveM License Key

You’ll also need to generate a license key and set it in your server using

sv_licenseKey “your_license_here”

gaming keyboard

Step #5: Start Server

Now, you can start your server using this command prompt:

cd /d D:\FXServer\server-data

D:\FXServer\server\FXServer.exe +exec server.cfg

For Linux

Step #1: Create Folder for Download

Create a new folder, eg (mkdir /home/username/FXServer/server)

Step #2: Download Master Branch for Linux

Download a master branch build in your new folder from the artifacts server. (you can also copy the URL and use “wget ” to get the latest server version of the master branch build.) Next, extract the build to your folder using this command line:

cd /home/username/FXServer/server && tar xf fx.tar.xz

fivem master branch

Note that you’ll need to have xz installed to use this command. After extracting the folder, clone your cfx-server-data into a new folder, outside the server binaries folder. For example, you could use this:

git clone https://github.com/citizenfx/cfx-server-data.git /home/username/FXServer/server-data

git clone https://github.com/citizenfx/cfx-server-data.git /home/username/FXServer/server-data

Step #3: Make server.cfg

Next, you’ll need to make a server.cfg file in your server data folder. But first, ensure you’ve cloned the cfx-server-data outside your server binaries folder. Copy the information below into your new .cfg file:

# Only change the IP address if you’re using a server with multiple network interfaces, otherwise change the port only.

endpoint_add_tcp “0.0.0.0:30120”

endpoint_add_udp “0.0.0.0:30120”

 

# These resources will start by default.

ensure mapmanager

ensure chat

ensure spawnmanager

ensure sessionmanager

ensure fivem

ensure hardcap

ensure rconlog

ensure scoreboard

# This allows players to use scripthook-based plugins such as the legacy Lambda Menu.

# Set this to 1 to allow scripthook. Do note that this does _not_ guarantee players won’t be able to use external plugins.

sv_scriptHookAllowed 0

 

# Uncomment this and set a password to enable RCON. Make sure to change the password – it should look like rcon_password “YOURPASSWORD”

#rcon_password “”

 

# A comma-separated list of tags for your server.

# For example:

# – sets tags “drifting, cars, racing”

# Or:

# – sets tags “roleplay, military, tanks”

sets tags “default”

# A valid locale identifier for your server’s primary language.

# For example “en-US”, “fr-CA”, “nl-NL”, “de-DE”, “en-GB”, “pt-BR”

sets locale “root-AQ”

# please DO replace root-AQ on the line ABOVE with a real language! 🙂

 

# Set an optional server info and connecting banner image url.

# Size doesn’t matter, any banner sized image will be fine.

#sets banner_detail “https://url.to/image.png”

#sets banner_connecting “https://url.to/image.png”

 

# Set your server’s hostname

sv_hostname “FXServer, but unconfigured” 

# Nested configs!

#exec server_internal.cfg

 

# Loading a server icon (96×96 PNG file)

#load_server_icon myLogo.png

 

# convars which can be used in scripts

set temp_convar “hey world!”

# Uncomment this line if you do not want your server to be listed in the server browser.

# Do not edit it if you *do* want your server listed.

#sv_master1 “”

 

# Add system admins

add_ace group.admin command allow allow all commands

add_ace group.admin command.quit deny # but don’t allow quit

add_principal identifier.fivem:1 group.admin # add the admin to the group

# Hide player endpoints in external log output.

sv_endpointprivacy true

 

# enable OneSync with default configuration (required for server-side state awareness)

onesync_enabled true

 

# Server player slot limit (must be between 1 and 32, unless using OneSync)

sv_maxclients 32

# Steam Web API key, if you want to use Steam authentication (https://steamcommunity.com/dev/apikey)

# -> replace “” with the key

set steam_webApiKey “”

 

# License key for your server (https://keymaster.fivem.net)

sv_licenseKey changeme

Step #4: Apply FiveM License Key

With a server config file in your server data folder, you can now generate a license key on the website. Then, set the license key in your server.cfg file using this command line:

sv_licenseKeyyourLICENSEhere

Step #5: Start Server

Congratulations because your FiveM server set up is now complete. Run the server from the server data folder to get started. Use the following command line:

bash /home/username/FXServer/server/run.sh +exec server.cfg

Tips and Reminders

Sometimes, you won’t get any ‘resources found,’ and it says ‘failed to start resource’ on your FiveM [1] server. If this happens, you didn’t direct ‘cd’ to the correct folder. Check your file directory and try again.

orange keyboard

Conclusion

Thanks to our team, you know how to complete a FiveM server setup. The process of setting up your server hosting is quite straightforward, from creating a folder to setting up your make server.cfg file complete with admin command lines. Finally, it’s helpful to follow the steps accordingly for the best results.

To know more about server hosting and to find a dedicated server for your favorite online game, you can check our page about how to host a KF2 server here

Leave a Reply

Your email address will not be published. Required fields are marked *