โ๏ธ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-dataInside the new folder that got created which is called โserver-dataโ, create a new file and name it โserver.cfgโ.
Copy the example
server.cfgfrom Fivemโs server-documents. And paste it inside of theserver.cfgyou 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.cfglike so:sv_licenseKeypaste-your-license-key-here
Take the Steam API key you have generated by and paste it inside of your
server.cfglike so:set steam_webApiKeypaste-your-steam-api-key-hereCreate 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.cfgThen save the โ.txtโ file as a โ.batโ file. (Name it however you like)
start.bat 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 button that says โNewโ. Insert a name you would like into the โLabelโ input. Insert
127.0.0.1into the โServer IP addressโ input. Pick your server type in the โServer typeโ input. EnterArmour Hostinginto the "Which server provider are you using?" input?
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.cfgas 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.exefrom 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
Was this helpful?