Member-only story
FiveM is a custom multiplayer mode for Grand Theft Auto V. There a plenty of different gamemodes like roleplay, deathmatch, freeroam, infected and more. In this tutorial I want to show you how you can create your own server on Windows. In FiveM you can play as cop, ambulance, banker, taxi driver or criminal. You can also add custom mod vehicles!
Prerequisites
You have to install Git and also Visual C++ Redistributable 2019.
Create directories
We have to download the server files and create a directory for our custom data.
- Create the following structure:
D:\FiveMServer\server
D:\FiveMServer\server-data - Inside server\ insert the contents of the latest recommended branch.
- Then move to server-data\ with PowerShell and run git clone https://github.com/citizenfx/cfx-server-data.git .
- Create a server.cfg inside server-data\ and fill it with the following content: https://gist.github.com/majoess/018e5c49bc51ce1eae54237c61387340
- Generate a license key at https://keymaster.fivem.net/
- Open server.cfg and set the server license in line sv_licenseKey “”
- Run the server via the cmd:
cd /d D:\FiveMServer\server-data
D:\FiveMServer\server\FXServer.exe +exec server.cfg
You can now login to your FiveM sever via client.
If you like to see more tutorials please feel free to comment.