FiveM - Server Creation

Creating a server in FiveM

Windows

Requirements

Installation

  1. Create a new folder (example D:\FXServer\server), this will be used for the server binaries.

  2. Download the latest recommended build for windows from the master branch from the artifacts server.

  3. Extract the build into the directory you created in step 1. Using an archive tool such as WinRar

  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. Download the server.cfg file and place it in your server-data folder

  6. Generate a license key at https://keymaster.fivem.net.

  7. Set the license key in your server.cfg using sv_licenseKey REPLACEMEWITHYOURLICENSE.

  8. Copy the contents of the server-data folder and paste them inside the serverfolder (You might be asked to replace files within this folder. Replace the files in question)

  9. Start the FiveM server from the serverfolder using the windows command prompt. (To open Command Prompt, type cmd in the windows search bar)

    cd D:\FXServer\server\FXServer.exe +exec server.cfg

From there the server will boot.

Last updated

Was this helpful?