⚒️FiveM Installation
This is a comprehensive guide will teach you how to install your FiveM files to your local drive on your machine and run your server.
Requirements for the installation:
Git.
Visual C++ Redistributable 2019 or newer.
The requirements have to be installed on the machine.
How to install a FiveM server onto your machine:
On your machine, create a new folder on disk
C:
and name it as you’d like.Download the latest recommended version from the windows server artifacts-list.
Extract the build you downloaded into the folder you first created. (Use WinRAR or 7-Zip)
Select the folder you have created and right-click on it. Then click on the “Git Bash Here” option.
After the command-line has opened, paste the following command inside of it using
Shift + Ins
.git clone https://github.com/citizenfx/cfx-server-data.git server-data
Inside the new folder that got created which is called “server-data”, create a new file and name it “server.cfg”.
Copy the example
server.cfg
from Fivem’s server-documents. And paste it inside of theserver.cfg
you have created.Generate a FiveM license key and Steam API key by following the guides below.
Take the license key you have generated and paste it inside of your
server.cfg
like so:sv_licenseKey
paste-your-license-key-here
Take the Steam API key you have generated by and paste it inside of your
server.cfg
like so:set steam_webApiKey
paste-your-steam-api-key-here
Create a .txt file inside of your server-data folder and paste the lines below inside of it. (Change according to your folder names)
cd C:\file-name\server-data C:\file-name\FXServer.exe +exec server.cfg
Then save the “.txt” file as a “.bat” file. (Name it however you like)Enable the FXServer.exe application through the firewall by following the guide below.
Start your server by running the .bat file you have created
How to generate a FiveM license key:
Head to keymaster.fivem.net and sign in with your FiveM account.
Click on the “Generate” button and copy the key which is located to the right of the label you choose.
How to generate a Steam API key:
Head to https://steamcommunity.com/dev/apikey and sign in with your Steam account.
Insert your machine IP address the “Domain Name” input.
Read and agree to Steam Web API Terms of Use.
Copy and paste the key into your
server.cfg
as described above.
How to enable FXServer.exe
through the firewall:
FXServer.exe
through the firewall:Search for “Windows Defender Firewall” in the start menu search bar and open the application.
Click on “Allow an app or feature through Windows Defender Firewall” and choose “Allow another app…”
Choose the
FXServer.exe
from your server folder.Check both “Private” and “Public” boxes on the app. (If applicable)
Choose “OK” and close the window.
Still Having Issues?
If the server is not starting properly with all of the default resources started, make sure you have named your folders the same in the folder name itself and in the path you specified in the “.bat” file. It’s the same for if you cannot start your server and it says “no license key was specified”, if the steps were done right and this error still occurs, make sure you have created and copied your license key correctly. If you are still having issues you can contact us via a ticket on our site. Open a ticket in our Discord Server.
Last updated