Requirements for the Installation

  1. Git.
  2. Visual C++ Redistributable 2019 or newer.
  • The requirements have to be installed on the VPS.

How to Install a Fivem Server on Your VPS

  1. On your VPS, create a new folder on disk C: and name it as you’d like.
  2. Download the latest recommended version from the windows server artifacts-list.
  3. Extract the build you downloaded into the folder you first created.
    (Use WinRAR or 7-Zip)
  4. Select the folder you have created and right-click on it.
    Then click on the “Git Bash Here” option.
  5. 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
  6. Inside the new folder that got created which is called “server-data”, create a new file and name it “server.cfg”.
  7. Copy the example server.cfg from Fivem’s server-documents.
    And paste it inside of the server.cfg you have created.
  8. Generate a license key and Steam API key by following the guide below.
  9. Take the license key you have generated and paste it inside of your server.cfg like so:
    sv_licenseKey paste-your-license-key-here
  10. 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”
  11. 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).
  12. Enable the FXServer.exe application through the firewall by following the guide below.
  13. Start your server by running the .bat file you have created.

How to Generate a Fivem License Key

  1. Head to keymaster.fivem.net and sign in with your FiveM account.
  2. Click on the button that says “New”.
    Insert a name you would like into the “Label” input.
    Insert 127.0.0.1 into the “Server IP address” input.
    Pick “Home hosted” in the “Server type” input.
  3. 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

  1. Head to https://steamcommunity.com/dev/apikey and sign in with your Steam account.
  2. Insert your VPS IP address the “Domain Name” input.
  3. Read and agree to Steam Web API Terms of Use.
  4. Copy the key.

How to Enable a Fxserver.exe Through the Firewall

  1. Search for “Windows Defender Firewall” in windows searchbar and open the application.
  2. Click on “Allow an app or feature through Windows Defender Firewall” and choose “Allow another app…”
  3. Choose the FXServer.exe from your server folder.
  4. Check both “Private” and “Public” boxes on the app.
  5. Choose “OK” and close the window.

Still Heaving Issues?

If the server is not starting properly with all of the default resource started, make sure you have named your folders the same on both the folder name itself and 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 at https://billing.iceline-hosting.com/submitticket.php.