GTA V · TUTORIAL
Installing a FiveM server for roleplay
This tutorial guides you step by step through installing a FiveM server. You’ll go from downloading the artifacts to the first in-game connection.
🎮
Base game required.
Each connected player needs a legal copy of GTA V. It can be bought, for example, on Steam, Epic Games or the Rockstar Games Launcher.
🔑
Cfx.re license key.
A free key, generated on the Cfx.re Portal, authenticates your FiveM server with the platform.
🛠️
Hosting panel.
The Koinswift Panel brings together file management, backups and version selection.
This tutorial explains how to install a FiveM server step by step. It’s based on the official Cfx.re documentation. It’s aimed at players launching their first GTA V roleplay server. The procedure follows the recommended build channel currently published by Cfx.re.
What is a FiveM server and what is this tutorial for?
FiveM is a multiplayer platform for hosting custom GTA V servers. It relies on server software called FXServer. This binary runs independently of the standard game client. A FiveM server can therefore host scripts, modified maps and a complete roleplay economy. That’s why RP communities have used it heavily for several years.
Two official methods exist to install it. The first, called “vanilla”, is driven from the command line. The second goes through txAdmin, a guided graphical interface. According to the official Cfx.re documentation, txAdmin is recommended for beginners. This tutorial therefore follows that method, which carries over to a hosting panel like Koinswift’s.
Prerequisites before installing a FiveM server
Before you start, gather a few simple things. First, you need access to your hosting panel. A file manager and a console are also required there. On the Koinswift Panel, these three tools are available directly from the interface.
You’ll then need a free Cfx.re account. It’s used both to link txAdmin and to generate your license key. Also have a legal copy of GTA V to test the connection from your PC. Finally, keep the basics of the command line at hand. Most of the installation, however, goes through a graphical interface.
Installing and configuring your FiveM server step by step
Here’s the full procedure, from downloading the artifacts to the first launch. Each step matches a point checked in the official Cfx.re documentation.
Download the FXServer artifacts.
Go to the server artifacts page. Download the build marked “Latest recommended”, not the “Latest” channel, on a production server.
Extract the archive in your panel.
Upload and unzip server.7z via the file manager. You then get FXServer.exe, or the Linux binary, ready to use.
Launch FXServer and open txAdmin.
On first startup, txAdmin opens on port 40120. A four-digit PIN appears, to enter in the browser.
Generate your key on the Cfx.re Portal.
Then log in at portal.cfx.re. Click “Create a key”, name your server, then copy the key into txAdmin.
Configure server.cfg.
First check port 30120 in TCP and UDP. Enable OneSync with “set onesync on”, then adjust sv_maxclients according to your plan.
Save and start the server.
Finally, click “Save and Run Server” in txAdmin. Your FiveM server starts and loads its resources in the console.
According to Cfx.re’s official server manual, port 30120 must stay open in TCP and UDP. So remember to check your firewall or your panel’s network configuration before the first test. If needed, see Cfx.re’s vanilla server manual for the full details of the server.cfg file.
Sizing your FiveM server’s RAM
The RAM needed mainly depends on the number of scripts and simultaneous players. For example, a test FiveM server runs fine with 6 GB. An active roleplay server with several frameworks needs more like 12 GB. Beyond 32 players and many resources, 24 GB provides more headroom, especially for OneSync. The reasoning matches the one detailed in our RAM sizing guide for Minecraft, which carries over to FiveM.
Note: These values are indicative. The amount of RAM alone doesn’t guarantee performance: the processor, server software, number of simultaneous players, simulation distance, number of entities and extensions also influence the result.
Checking and fixing common errors on a FiveM server
Once the server is running, open the FiveM client. Click “Connect to [computer name] on LAN” for a local test. Otherwise, you can enter your panel’s address for a remote test. Once connected, press F8, then type “tx”. The txAdmin menu opens in game and confirms everything works.
If the console shows “no license key was specified”, the sv_licenseKey key is missing or wrongly copied. If no resource starts and the connection fails with “timed out”, check the launch with the +exec server.cfg option. Finally, a “Failed to start resource” message usually indicates a misplaced or incomplete resource folder. In that case, simply recheck your file tree, or see the Koinswift FAQ for the most common cases.
Choosing a hosting plan for your FiveM server
A FiveM server runs best on a machine that’s always on. Rather than managing a dedicated computer yourself, Koinswift’s GTA V/FiveM plan offers three RAM tiers on Intel Xeon processors. The KOIN50 code applies -50% for the first six months. It can’t, however, be combined with other promotions.
| RAM | Discounted price /month (code KOIN50) | Standard price /month |
|---|---|---|
| 6 GB | 2,00 € | 3,99 € |
| 12 GB | 4,25 € | 8,49 € |
| 24 GB | 8,75 € | 17,49 € |
The panel includes a file manager, backups and version selection. That covers all the steps described above. In addition, the network infrastructure is secure and filtered. Support remains available 7 days a week if you get stuck during installation.
FiveM server FAQ
Do you need to buy GTA V to host a FiveM server?
No, the FXServer binary doesn’t require a copy of GTA V on the hosting machine. However, every connected player must own a legal copy of the game.
What’s the default port of a FiveM server?
The default port is 30120. It must be open in TCP and UDP, as stated in the server.cfg file provided by Cfx.re.
How do I get a license key for my FiveM server?
The key is generated for free on the Cfx.re Portal. It’s then found in the section dedicated to server registration keys.
How much RAM does a FiveM server need?
Allow 6 GB for a demo server, 12 GB for an active community, and 24 GB for a script-heavy server.
Is OneSync mode mandatory?
OneSync must be enabled for reliable server synchronization. This is especially true beyond 32 players, according to the official Cfx.re documentation.
What to do if the server shows “no license key was specified”?
This error means sv_licenseKey isn’t filled in, or is wrongly copied, in server.cfg. Check that it exactly matches the key generated on the Cfx.re Portal.
Installing a FiveM server means following a few precise steps. None of them is complex in itself, though. Download the recommended artifacts, generate your key on the Cfx.re Portal, then configure server.cfg. Then test the connection from the FiveM client. Finally, adjust the RAM to your roleplay community’s actual attendance.
Key takeaway: a FiveM server is installed via txAdmin and authenticated with a key from the Cfx.re Portal. It listens on port 30120 in TCP/UDP, and its RAM is sized according to the number of players and active scripts.






