How To Install FiveM On Windows Server 2019 VPS Or Dedicated Server
Visual C++ Redistributable 2019 or newer.
Git to assure a correct installation.

Create a new directory (for example D:\FXServer\server), this will be used for the server binaries.
Download the latest master branch build for Windows from the artifacts server.
Extract the build into the directory previously created.
Use any archiving tool (such as WinRAR or 7-Zip).
Clone cfx-server-data in a new folder outside of your server binaries folder, for example, D:\FXServer\server-data.
git clone server-data
Make a server.cfg file in your server-data folder (copy the example server.cfg file below into that file).
Generate a license key at
Set the license key in your server.cfg using sv_licenseKey "licenseKeyGoesHere".
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)
Was this article helpful?
Thank you!