
Creating an unofficial GTA 5 server with FIVEM
To create an unofficial gta 5 server with FIVEM you need to generate a token that will allow you to host a maximum of 32 players, and to increase this number to 128 you need to make a ‘donation’ to the creators of FIVEM.
A server can also earn money through ‘donations’. Each owner of these servers runs it completely independently, sometimes with the help of collaborators. Both sides can many times give players reason to complain, so in the long run those who have the possibility get tired of it and create it on their own.
Creating an unofficial GTA 5 server with FIVEM is a relatively simple thing, the most complicated and tedious thing will then be the configuration, the installation of mods and scripts. Since I cannot know what kind of operating system you use and since the server is available for both windows and linux, I decided to include both procedures.
Installation on Windows server
To install the GTA 5 server on windows you need certain programmes already installed:
A programme to decompress an archive such as winzip, winrar or 7zip (but also the windows explorer itself);
Visual C++ redistributable 2019 or higher;
A text editor (even windows notepad is fine);
Git for Windows (I preferably use the 32-bit version);
At this point, it is crucial to understand the following conventions as an example:
We will use the D:\ drive as the hardisk where we will put the server files, if you decide to choose another one you will have to replace it with the letter that identifies the hardisk in which you want to create the server;
The FXServer folder will be the one we use in the example, but you can call it whatever you like;
The server folder will be a sub-folder of FXServer;
The server-data folder will be a sub-folder of FXServer;
The string en-US identifies the fact that the server is in US English, it can be changed if the server is in other languages, for example fr-FR
Download the latest version of the artefact from this link;
Then open the windows command prompt and type in order:
mkdir D:\FXServer
mkdir D:\FXServer\server
mkdir D:\FXServer\server-data
Unzip the downloaded file, its content must be moved to the folder D:\FXServer\server
In the windows command prompt type
cd D:\FXServer\server-data
git clone https://github.com/citizenfx/cfx-server-data.git
In the server-data folder create a file called server.cfg inside the file put these strings:
endpoint_add_tcp ‘0.0.0.0:30120’
endpoint_add_udp ‘0.0.0.0:30120’
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure hardcap
ensure rconlog
ensure scoreboard
sv_scriptHookAllowed 0
sets tags ‘default’
sets locale ‘en-US’
sv_hostname ‘FXServer, but unconfigured’
sets temp_convar ‘hey world!’
#sv_master1 ‘’
add_ace group.admin command allow
add_ace group.admin command.quit deny
add_principal identifier.fivem:1 group.admin
sv_endpointprivacy true
onesync_enabled true
sv_maxclients 32
set steam_webApiKey ‘’
sv_licenseKey changeme
The arguments of the strings endpoint_add_tcp and endpoint_add_udp should only be changed if there are ambiguities regarding the ip address.
From the fivem site, we must create a key, which we must then place in the configuration file immediately next to the string sv_licenseKey.
Installation on a Linux server
In order to install the GTA 5 server on Linux we can go straight to the implementation, since all the dependencies that we had to download on windows are present in the packages we will install.
We create a user which we will call username for convenience
We create a new folder with the command mkdir /home/username/FXServer/server
. This folder will contain the server's binaries.
We download the latest version of the server from this site and copy the file into the folder we created earlier.
After entering this folder, we can unpack the server artefact with the command tar xf fx.tar.xz
.
We now need to clone the contents of the cfx-server-data into a new folder that we will call /home/username/FXServer/server-data with the command
git clone https://github.com/citizenfx/cfx-server-data.git /home/username/FXServer/server-data
The rest of the procedure is identical to the windows server, you have to create the configuration server, generate the key from the fivem site and insert it into the configuration file.
To start the server under windows we then type the command bash /home/username/FXServer/server/run.sh +exec server.cfg
.
I hope that my guide has been helpful to anyone who wants to create a private GTA 5 server with FIVEM to play with their friends. If you have any doubts, please feel free to comment at the bottom of the article and be sure to share this article with your friends!
Comments