FiveM turned GTA V into the biggest roleplay platform around. A dedicated FiveM server lets you build a custom RP city with your own framework, resources and rules. Here is how to start.
A light server runs on 4 GB; a busy RP city with many resources wants 8–16 GB. FiveM scales with the number and weight of your resources more than raw player count.
You need a free FiveM license key from the Cfx.re portal. txAdmin — included on GGameHost — gives you a web panel to deploy, configure and manage the server and resources without the command line.
Most RP servers build on a framework: ESX (mature, huge resource library) or QBCore (modern, popular for new servers). Pick one, then add jobs, economy and custom resources on top.
server.cfg, then share your connect address.Cfx.re's example server.cfg binds the same port number twice, once per protocol, while txAdmin listens on its own port:
| Port | Protocol | Set by | Role |
|---|---|---|---|
| 30120 | TCP | endpoint_add_tcp "0.0.0.0:30120" | Documented as creating a multiplexable TCP server instance; the support guide checks external reachability at http://ip:port/info.json |
| 30120 | UDP | endpoint_add_udp "0.0.0.0:30120" | Documented as creating a UDP host instance; the address and port must be valid and not already in use |
| 40120 | TCP | TXHOST_TXA_PORT | txAdmin web panel; 40120 is its documented default |
The comment beside those two lines in the example config tells you to change only the port, and to change the IP only if the machine has multiple network interfaces. RCON stays disabled as long as rcon_password is unset, and the command reference notes that FXServer RCON runs over UDP. To prevent confusion between the two ports, txAdmin's configuration docs reject 30120 as the panel port and 40120 as the enforced game port.
Setting up a server starts with registering a free license key on the Cfx Portal and setting it through sv_licenseKey. The command reference notes that when sv_lan is set to true, the server does not appear in the public server list and license key checks are skipped.
sv_maxClients accepts an integer from 1 to 2048, subject to two documented conditions: values from 32 upward require onesync set to on or legacy, and values above 64 require onesync set to on. The example config ships with sv_maxclients 48 and set onesync on.
Server binaries are distributed as build artifacts. The vanilla setup guide has you download server.7z on Windows or fx.tar.xz on Linux; for FiveM for GTAV Enhanced, the corresponding files are cfx-server_win_x64 and cfx-server-linux_x64. The Windows artifact index marks one build LATEST RECOMMENDED and another LATEST OPTIONAL.
Base resources come from a separate cfx-server-data clone, placed in a folder outside the server binaries folder.
Tooling needed alongside the download:
xz or xz-utils package.Support for artifacts is time-boxed. Recommended artifacts are supported until six weeks after the next release in line, and latest artifacts until two weeks after it. Unsupported server artifacts older than three months cannot be joined from the server browser, so an untouched installation will eventually stop accepting connections until the artifact is replaced.
The Cfx.re guides name these startup failures:
server-data folder.+exec server.cfg was left off the command line.sv_master1 line stays commented out, since a missing # can make the server appear private and disable the connect button; make sure sets sv_projectName and sets sv_projectDesc are present; and allow up to 8 minutes after launch for the server to be listed. Firewalls or gateways that mask UDP source ports can also keep the server hidden. Use http://ip:port/info.json to test reachability from outside.Add-MpPreference -ExclusionPath from an administrator PowerShell prompt.