How to create a FiveM server for GTA V

FiveM is the platform for GTA V community servers, run by Cfx.re, part of Rockstar Games since 2023. These steps follow the official txAdmin route on Windows; Linux uses the same panel with a different download.

Facts checked 14 November 2026.

What you need

Steps

  1. Download the recommended server build from the FiveM server download page.
  2. Extract server.7z into a folder of your own, for example C:\FXServer\server.
  3. Run FXServer.exe. A browser page opens with a PIN: enter it and link your Cfx account.
  4. Set a password for the txAdmin admin page.
  5. Name your server and open Popular Recipes. "CFX Default FiveM" runs without a database; most roleplay templates need one.
  6. In the recipe deployer, paste your key from the Cfx Portal and run the recipe.
  7. Choose Save & Run Server.

Ports

Players connect on port 30120, over TCP and UDP. The txAdmin web panel uses port 40120. Open the game port on your firewall; keep the panel port closed to the public if you can reach it another way.

Adding a roleplay framework

Roleplay frameworks add jobs, money, housing and inventories, and keep them in a MySQL or MariaDB database. Install the database first, then deploy a framework recipe that points at it.

More guides