Skip to content
RPScripts

How to Create a FiveM Server with txAdmin

By Luke

How to Create a FiveM Server: txAdmin Setup (2026)

This guide sets up a FiveM server for GTA V Legacy using FXServer and txAdmin on Windows or Linux. You will create a server registration key in Cfx.re Portal, deploy the default recipe, review the configuration and test a connection. Add a roleplay framework after the basic server works.

Before you start

RequirementWhat to prepare
Cfx.re accountUse your account for Portal registration and the txAdmin account link.
A server hostA local PC for learning, or a host that supports FXServer. Check access to files, the console, firewall settings and backups before choosing a service.
A player clientTo join this Legacy server, use a legitimate GTA V Legacy installation and the matching FiveM client. GTA V does not need to be installed on the server host.
Windows toolsAn archive utility that opens .7z files, such as 7-Zip.
Linux toolsA non-root account for running FXServer, a download tool and support for extracting .tar.xz archives. Package commands below are for Debian/Ubuntu.

There is no useful player-capacity guarantee based only on RAM or CPU specifications. Resource code, streamed assets, the database and simultaneous activity all affect demand. Start with a small test configuration and measure it before paying for more capacity.

Choose the Legacy or Enhanced path

The commands below cover GTA V Legacy and FXServer. At the source-review date shown below, Cfx.re describes FiveM for GTAV Enhanced as an early-access release. Enhanced uses separate Cfx Server binaries, including cfx-server.exe on Windows, and has changes that can require resource or configuration updates.

For Enhanced, read the official migration and breaking-change notes before selecting a framework or moving a server. Check asset, voice and Asset Escrow support for the current release. Our Legacy and Enhanced comparison explains the choice; renaming an executable is not a migration procedure.

Step 1: Create a server registration key

  1. Open Server registration keys in Cfx.re Portal and sign in.
  2. Choose the option to generate a key, enter a display name and confirm.
  3. Copy the generated key for the txAdmin recipe deployer. In server.cfg, the corresponding setting is sv_licenseKey.

The current Cfx.re registration instructions use a display name; they do not ask for the first-use public IP described in older Keymaster tutorials. Keep the key out of public repositories, screenshots and shared logs. If it leaks, regenerate it in Portal and update your server configuration.

Step 2: Download the Legacy server files

Use the official Server Download page, select FiveM for GTA V Legacy and your operating system, then download the recommended build. Copy the current download URL from that page rather than reusing a build number from a tutorial.

Windows

  1. Create C:\FXServer\server for the server binaries.
  2. Download server.7z and extract its contents into that directory.

Linux: Debian/Ubuntu preparation

Install the download and extraction tools with an account allowed to manage packages. Run FXServer itself as your dedicated non-root user.

sudo apt update
sudo apt install ca-certificates wget xz-utils
mkdir -p ~/FXServer/server
cd ~/FXServer/server
wget -O fx.tar.xz 'PASTE_RECOMMENDED_LINUX_URL_HERE'
tar -xf fx.tar.xz

Replace PASTE_RECOMMENDED_LINUX_URL_HERE before running the download command. Stop and resolve any download or extraction error before continuing. For other distributions, use their package manager and check the official Linux setup requirements.

Step 3: Start FXServer and access txAdmin

txAdmin is included with current FXServer builds. Start it without +exec server.cfg; txAdmin will manage the server configuration through its setup flow.

  • Windows: run FXServer.exe from the extracted directory.
  • Linux: run bash ~/FXServer/server/run.sh.

Read the console for the setup URL and PIN. The default txAdmin web port is 40120 TCP. On the server machine, open http://127.0.0.1:40120. A managed host may provide its own URL or port.

For a remote host with SSH access, you can open a tunnel from your own computer, keep it running and then visit that same local URL:

ssh -N -L 127.0.0.1:40120:127.0.0.1:40120 user@YOUR_SERVER_IP

Replace the SSH username and server address. Restrict direct access to the admin port through your host's access controls or firewall; a tunnel does not itself close a publicly exposed port. Players do not need access to txAdmin to join.

Step 4: Link your account and deploy the default recipe

  1. Enter the console PIN if needed and select Link Account.
  2. Authorize the Cfx.re account link, choose a strong backup password and review the agreements shown by txAdmin.
  3. Enter a server name and choose Popular Recipes.
  4. Select the Cfx.re default FiveM recipe. Depending on the interface version, it may be labelled FiveM Basic Server (CFX Default) or CFX Default FiveM.
  5. Confirm a separate data directory for the resources and server.cfg, then open Recipe Deployer.
  6. Review the recipe, enter your registration key and select Run Recipe.
  7. Wait for all deployment tasks to finish successfully, review the generated configuration and select Save & Run Server.

The default recipe is a basic server without a complete roleplay economy. It lets you check the server before introducing framework and database dependencies. If deployment fails, keep the first relevant error from the console and resolve it before retrying.

Give staff their own accounts through txAdmin's Admin Manager. Grant only the actions they need: viewing a console, executing commands, editing configuration and managing other admins are separate permissions. Framework roles and server ACE rules require their own configuration.

Step 5: Review server.cfg

Edit the existing values in the configuration generated by the recipe. Keep its resource-start lines. This excerpt illustrates a small test server; it is not a replacement for the complete file:

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

sv_hostname "My Legacy test server"
sets sv_projectName "My Legacy test server"
sets sv_projectDesc "A basic server for connection testing"
sets tags "test"

sv_maxclients 8
set onesync on
sv_licenseKey "REPLACE_WITH_YOUR_KEY"
SettingCheck
endpoint_add_tcp and endpoint_add_udpUse the port assigned by your host. The examples use 30120 for both protocols; firewall rules and connection commands must match.
sv_maxclientsThis sets the player cap, not a performance guarantee. Higher limits may require a Cfx.re subscription; check your current Portal entitlements.
sv_projectName and sv_projectDescSet meaningful values for the server listing.
sv_enforceGameBuildOnly add a game-build requirement after checking the documentation for your resources and the supported builds for your server branch.

The server.cfg guide explains the configuration in more detail. You can also review the server.cfg generator and other server tools; check any generated values against your recipe and host.

Step 6: Configure access for players

For players on other machines, allow the configured game port through the operating-system firewall and any hosting-provider firewall. The examples below use 30120 TCP and UDP. Keep the separate txAdmin port restricted to administrators.

Windows firewall: PowerShell as administrator

New-NetFirewallRule -DisplayName "FiveM TCP" -Direction Inbound -Protocol TCP -LocalPort 30120 -Action Allow
New-NetFirewallRule -DisplayName "FiveM UDP" -Direction Inbound -Protocol UDP -LocalPort 30120 -Action Allow

Linux: when UFW is already in use

sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp
sudo ufw status

Check the resulting rules and preserve the access you use to manage the host. These commands do not configure an upstream firewall or router.

If you host behind a home router, forward the game port for both protocols to the server PC's local address. Confirm that your connection permits incoming public traffic. A public home-hosted server exposes your home connection's public address; choose the hosting location with that in mind.

Step 7: Verify local and external connections

Open the Legacy FiveM client, press F8 and use the address appropriate to your test. Replace the example address labels and port as needed.

TestClient command
Client and server on the same PCconnect 127.0.0.1:30120
Another PC on the same local networkconnect SERVER_LAN_IP:30120
A player outside your networkconnect SERVER_PUBLIC_IP:30120

Join the world, move around, disconnect and reconnect while watching the server console. For a public server, have a player test from a different network: a successful local join does not establish public reachability.

You can also check http://SERVER_PUBLIC_IP:30120/info.json from outside the server network. A JSON response checks the HTTP endpoint; it does not prove that UDP traffic or the complete joining process works. Keep the external client test.

Once these checks pass, back up the working data directory and txAdmin configuration securely before making further changes.

Step 8: Choose a framework for roleplay

Choose a framework around the resources you intend to use and the interfaces your team can maintain. Compare the options in our FiveM framework guide.

FrameworkCompatibility checkpoint
QBCoreCheck that your resources support the QBCore APIs and dependencies used by the installed version.
QboxIts QBCore bridge covers many resources that use documented interfaces. Scripts that access internal tables or files can need changes. The installation guide requires MariaDB and does not support MySQL or XAMPP.
ESX LegacyUse ESX-compatible resources and follow the current ESX recipe and database instructions.

Read the framework's current installation guide before deployment. Use a fresh data directory and an empty test database for the recipe. Give the application a dedicated database account, keep credentials private and verify character creation and persistence before adding more resources.

Step 9: Add and maintain resources

  1. Check each resource's source, server-branch compatibility, framework requirements and dependencies.
  2. Place it in the recipe's resources/ directory, for example resources/[local]/example_resource. Inspect its supplied fxmanifest.lua and installation instructions.
  3. Add ensure example_resource after its required dependencies in server.cfg.
  4. Test one addition at a time and read the first startup or gameplay error. For vehicles, see installing custom cars.

For custom gameplay scripts, validate sensitive actions on the server using server-side permissions and state. Client-side checks alone cannot protect item grants, payments or privileged actions.

Keep backups of resources, configuration and any database, and test a restore. Review release notes and try updates on a separate copy before replacing a working installation. Use logs and measurements to investigate problems; scheduled restarts do not resolve their underlying cause.

Troubleshooting

SymptomWhat to check next
no license key was specifiedCheck sv_licenseKey in the configuration actually loaded by txAdmin. For a manual launch, also check the data directory and +exec server.cfg; do not add that argument to the txAdmin startup command.
Failed to start resourceRead the preceding error. Check the resource folder, manifest, dependencies and start order; the message alone does not identify one cause.
Connection times out or is refusedConfirm that FXServer is running, then check the selected address, both game-port protocols, host firewall and router or provider rules.
Direct connection works but the server is absent from the listAllow time for listing updates. Check sv_projectName, sv_projectDesc and any sv_master1 "" override against Cfx.re's server-listing guidance.
txAdmin cannot be reachedCheck the URL and port printed by the console, the process and your admin-access rules. 127.0.0.1 in a browser refers to the machine running that browser unless you have set up the tunnel above.
FXServer stops respondingInspect logs around the first failure, recent resource changes and host CPU, memory and storage usage. Keep that evidence before restarting.

For further diagnosis, use the FiveM error guide and the official server-issues documentation below.

Common questions

Do I need a paid framework or a server pack?

A basic FXServer installation does not need a paid framework. Budget separately for hosting, any licensed resources and Cfx.re subscriptions required by the features you choose. If you plan to monetize the server, read the current Cfx.re Tebex guidance and linked policies before designing packages.

Should I use Windows or Linux?

Choose an operating system your host supports and your team can administer. This guide gives both Legacy startup paths; package installation, service management and troubleshooting differ between systems.

How long will setup take?

Downloads, account access, networking and recipe dependencies determine the time. Treat successful connection checks as the first milestone. Framework configuration, resource integration and a tested recovery process are separate work before a public launch.

Sources

Technical source review: 10 October 2026. This article was checked against the linked documentation; the commands were not executed on a test server for this review.

Trying to appear in the FiveM server list? Read the Cfx Portal and listing troubleshooting guide.

Premium picks for your server

All FiveM Server Packs