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
- A Cfx account, and a free server key from the Cfx Portal.
- A Windows or Linux machine that stays online, or a rented server.
- The Microsoft Visual C++ redistributable, as the docs require for the server on Windows.
- A tool such as 7-Zip to extract the download.
Steps
- Download the recommended server build from the FiveM server download page.
- Extract server.7z into a folder of your own, for example C:\FXServer\server.
- Run FXServer.exe. A browser page opens with a PIN: enter it and link your Cfx account.
- Set a password for the txAdmin admin page.
- Name your server and open Popular Recipes. "CFX Default FiveM" runs without a database; most roleplay templates need one.
- In the recipe deployer, paste your key from the Cfx Portal and run the recipe.
- 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
- Moving a FiveM server to GTA 6 (creategtaserver.com)
- A webstore for your GTA server (creategtaserver.com)
- How to create a GTA 6 server (creategta6server.com)