After all these years the standard Grand Theft Auto V features are getting boring. You have an awesome idea for a new gamemode but lack the technical skills to make it happen. Maybe you feel like adding super detailed modded cars or you want to roleplay as a cop with your friends. This guide will help you start your own FiveM server (FXServer). You can simply install it on your own computer or you can rent a VPS/Dedicated server for 24/7 uptime and great performance.
This tutorial in this series will teach you to create a FiveM server on Windows 10. Although, I should be similar to Windows Server and older versions. Linux is a bit different though so there will be a separate tutorial for that down the road. Before you start, make sure that your OS is a 64-bit version!
Don’t want to host the server on your own computer? Check out Zap-Hosting (the official FiveM host) and use code Leyer-a-7753 for 10% off. https://zap-hosting.com/leyerfivem
Required programs
Make sure you have Visual C++ redistributable, 2017 installed.
You can download it here: https://go.microsoft.com/fwlink/?LinkId=746572
Create a folder
Create a folder for FiveM. Put it where you want it and the name doesn’t matter. Avoid spaces in the name to make it easier for you.
Downloads
Download the latest FiveM version here: https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/
You will also need to download the latest cfx-server-data here: https://github.com/citizenfx/cfx-server-data/archive/master.zip
Extract the downloads
Double click on the FiveM zip & cfx-server-data files you downloaded then drag all the content from them to your FiveM server folder.
Create a server.cfg
Right click in the cfx-server-data folder that you just extracted and select New -> Text Document
Copy everything from the server.cfg example. Found here
Paste it into the text document you just created
Save the document:
File -> Save As…
Saves as Type: All Files
File name: server.cfg
Get a license key
Create a license key https://keymaster.fivem.net/
Insert it in your server.cfg file where it says “sv_licenseKey your key here”
Then save the file again, but this time you can simply press save.
Create a starter.bat
Right click in the FiveM server folder and select New -> Text Document
Paste the following into the file:
cd /d YourServerFolderPath\cfx-server-data-master
YourServerFolderPath\run.cmd +exec server.cfg
Example:
cd /d D:\FiveMServer\cfx-server-data-master
D:\FiveMServer\run.cmd +exec server.cfg
NOTE: NO SPACES IN THE PATH
Save the document:
File -> Save As…
Saves as Type: All Files
File name: start.bat
You are done!
Now just double-click the start.bat to start the server.
Thank you for the tutorial, helped me a lot 🙂