How To Install a FiveM Server on Windows

Windows

Prerequisites

  1. Visual C++ Redistributable 2019 or newer.
  2. Git to assure a correct installation.

Installation

  1. Create a new directory (for example D:\FXServer\server), this will be used for the server binaries.
  2. Download the latest master branch build for Windows from the artifacts server.
  3. Extract the build into the directory previously created.
    3b. Use any archiving tool (such as WinRAR or 7-Zip).
  4. Clone cfx-server-data in a new folder outside of your server binaries folder, for example, D:\FXServer\server-data.
    4b. git clone https://github.com/citizenfx/cfx-server-data.git server-data
  5. Make a server.cfg file in your server-data folder (copy the example server.cfg file below into that file).
  6. Generate a license key at https://keymaster.fivem.net.
  7. Set the license key in your server.cfg using sv_licenseKey "licenseKeyGoesHere".
  8. Run the server from the server-data folder. For example, in a plain Windows command prompt (cmd.exe) window:cd /d D:\FXServer\server-data D:\FXServer\server\run.cmd +exec server.cfg (the /d flag is only needed when changing directory to somewhere on a different drive)
serverhub

Share
Published by
serverhub

Recent Posts

NGINX: High-Performance Web Server and Reverse Proxy (Advanced Guide)

In our previous article on NGINX, we explored the basics —what it is, where to…

1 day ago

NGINX: High-performance Web Server and Reverse Proxy

NGINX has become one of the most popular web servers in the world, widely praised…

2 weeks ago

A Deeper Dive into Microsoft IIS: Real-World Uses, Developer Workflows & Competitors

When you’re working within Windows environments, you’ve likely crossed paths with IIS—short for Internet Information…

4 weeks ago

Microsoft IIS Installation & Troubleshooting Guide for Windows-Based Web Servers

When it comes to deploying web applications on a Windows-based system, Microsoft Internet Information Services…

2 months ago

PostgreSQL Deep Dive: Tools, Cloud, Performance, and Architectures

PostgreSQL (often called Postgres) is a powerful, open-source relational database management system (RDBMS) renowned for…

2 months ago

Introduction to PostgreSQL: Advanced Open-source Database

PostgreSQL is a robust, open-source object-relational database management system (ORDBMS), commonly referred to as Postgres.…

3 months ago

This website uses cookies.