Skip to content
FIVECRATE

How to Make a FiveM Test Server to Try Assets Safely

How to make a FiveM test server: a private copy of your live server with its own ports, txData, key and database, to try new cars, MLOs and scripts first.

A modder tests a custom coupe on a monitor above a city diorama, with a separate live-server workstation behind
Author: FiveCrate
Published:
Updated:
Read time: 13 min
Applies to
FiveM Legacy (FXServer recommended build 38435 on December 3, 2026) and FiveM for GTAV Enhanced (Cfx Server); txAdmin v8.1.2 (October 23, 2026); Windows and Linux; Qbox, ESX Legacy, QBCore and servers without a framework
Last verified

Direct Answer

To make a FiveM test server, run a second FXServer next to your live one with nothing shared: its own folder, its own txAdmin data folder (TXHOST_DATA_PATH), its own txAdmin port (TXHOST_TXA_PORT=40125), its own game port (TXHOST_FXS_PORT=30125), its own Cfx Portal key and its own database. Deploy the same recipe and build as your live server, copy your resources and a copy of the database over, and on your own PC add sv_lan true to keep it off the server list and join with connect localhost:30125 in the F8 console. Test every new car, MLO or script there before it goes live.

What a FiveM test server is

A test server (also called a dev server, development server or localhost server) is a private copy of your live server that only you and your staff join. You install a new asset on it first, check that it starts, loads and works with your other resources, and only then copy it to the live server. It applies to every kind of server: roleplay, racing, PvP, zombie, freeroam or car meet.

It is an ordinary FXServer, so the base install is the one in the complete server setup guide. What makes it a test server is what you keep apart from the live server and what you keep the same:

Keep separateWhy
Server folderFiles you break on the test server never touch the live one
txData folder (TXHOST_DATA_PATH)txAdmin warns that servers sharing one txData get a conflicting admins.json
txAdmin port (TXHOST_TXA_PORT)The default 40120 is already used by the live server’s txAdmin
Game port (TXHOST_FXS_PORT or endpoint_add_*)The default 30120 is already used by the live server
Registration keyQbox’s docs: a separate key “keeps your live server’s key and server list entry untouched”
DatabaseQbox’s docs: “Never point the test server at your live database”
Keep the sameWhy
Recipe or frameworkQbox, ESX Legacy, QBCore or no framework, as on live
FXServer buildAt the time of writing (December 3, 2026) the recommended Windows build is 38435 and the latest is 38781
sv_enforceGameBuild and increase_pool_size linesClients restart the game when these differ between servers
Resources and their configA test only means something if the rest of the server matches

Does a FiveM test server need its own license key?

It depends on how you build it and on what you test.

  • A local test server with sv_lan true skips the key check. Cfx.re’s Server Commands page says sv_lan “makes the server LAN-only. It will not appear in the public server list and license key checks are skipped.”
  • The txAdmin Recipe Deployer still asks for a key. In txAdmin’s source, the deployer rejects the input step with “The Server License does not appear to be valid.” when the key field does not match a key format. If you deploy a recipe, generate a key for the test server.
  • Use a second key, not the live one. Qbox’s test-server instructions say “Keys are free” and that a separate key leaves the live server’s key and list entry alone. Cfx.re support allows “up to three active server registration keys per account”, so live plus test uses two of the three. The license key guide covers generating one in the Portal.
  • Escrowed assets need a key from the account that holds them. Cfx.re support says “Assets you download will only work on servers that you own”, and a Cfx.re staff member explained that resource licenses “are locked to the account of the buyer and server keys”. Generate the test server’s key on the Cfx account that holds your escrowed assets. The Cfx.re docs and support articles cited here do not say whether escrowed resources start on a server with sv_lan true; if one does not, the entitlement error guide lists the checks.

Choose where the test server runs

Your live server runsBuild the test serverJoin it with
On your own Windows PCNext to the live server, on ports 40125 and 30125connect localhost:30125
At a game server hostOn your own Windows PC, on the normal portsconnect localhost:30120
On a Windows or Linux machine you reach over the internetNext to the live server, on ports 40125 and 30125 (run.sh on Linux)connect with the machine’s address and port 30125, with sv_lan off (see the privacy section)

Qbox’s migration guide describes the first two options. The steps below follow them; the TXHOST_* variables are txAdmin’s own, so they are the same for ESX, QBCore and servers without a framework. For a server at a host, Qbox’s advice is to download “the whole server folder with your host’s file manager or FTP”, which doubles as a backup.

How to set up a FiveM test server next to your live server (Windows)

These steps apply to FiveM Legacy on Windows. Linux and Enhanced differences follow.

  1. Make a separate folder. For example C:\FXServer-test, with a server folder inside it.

  2. Download the same build as the live server. Extract server.7z into C:\FXServer-test\server, so the folder contains FXServer.exe.

  3. Create a start file. Save the text below as C:\FXServer-test\start-test-server.bat. It sets txAdmin’s environment variables before FXServer starts, which txAdmin supports from v8.0.0.

    @echo off
    set TXHOST_DATA_PATH=C:\FXServer-test\txData
    set TXHOST_TXA_PORT=40125
    set TXHOST_FXS_PORT=30125
    set TXHOST_MAX_SLOTS=8
    "C:\FXServer-test\server\FXServer.exe"
    pause
    • TXHOST_DATA_PATH gives the test server its own txAdmin settings, accounts and logs. Without it, txData sits in the folder above the one that contains FXServer.exe.
    • TXHOST_TXA_PORT moves the test server’s txAdmin to port 40125. txAdmin does not accept 30120 here.
    • TXHOST_FXS_PORT makes txAdmin enforce or replace the endpoint_add_* lines in server.cfg with port 30125. It cannot be 40120.
    • TXHOST_MAX_SLOTS caps sv_maxClients. txAdmin’s own dev-server example uses 8; leave the line out if you need more test players.
  4. Run the start file. Open http://localhost:40125, enter the 4-digit PIN from the console window and finish the txAdmin setup. The live server’s txAdmin stays at http://localhost:40120.

  5. Deploy the recipe your live server uses. Choose Popular Recipes. On December 3, 2026 the Legacy list holds FiveM Basic Server (CFX Default), ESX Legacy, Qbox, vMenu, StreetKings and WarfareTacticsV (Real-Time Strategy); each screen is explained in the txAdmin recipe guide. The list has no QBCore recipe, so for a QBCore server copy the live server’s files to the test folder and give the copy its own key, ports and database by hand.

  6. Enter the test server’s key and, if the recipe asks for one, a new database. Keep the new database name txAdmin suggests. With TXHOST_FXS_PORT set, the deployer writes the endpoint lines with port 30125 instead of 30120.

  7. Join the test server. Open FiveM, press F8 and run connect localhost:30125. Cfx.re’s console reference documents connect with an IP address and port, for example connect 127.0.0.1:30120.

When you run recipes often, txAdmin also reads TXHOST_DEFAULT_CFXKEY and the TXHOST_DEFAULT_DB* variables to pre-fill the deployer. txAdmin’s docs say these variables should be set only for the boot process, so do not leave passwords in a file other programs can read.

On Linux

txAdmin’s documentation says to add export VAR_NAME=VALUE lines to your existing run.sh, before the exec line, where Windows uses set. Use a separate copy of the server folder and its own run.sh for the test server, with the same four variables and a TXHOST_DATA_PATH inside the test folder. The Linux FXServer, Cfx.re notes, is “only provided as a courtesy port”.

On FiveM for GTAV Enhanced

Enhanced uses Cfx Server, a separate download “with txAdmin still embedded”. The Windows archive is cfx-server_win_x64 and the executable is cfx-server.exe, so put that file name in the start file. The Enhanced recipe list starts with FiveM Basic Server (Enhanced). Two limits matter for testing: Asset Escrow is “Not implemented yet” on Enhanced, and Enhanced supports only the latest game build (The Kortz Center Heist), which it loads by default; sv_enforceGameBuild 1 loads the base game without DLCs.

FiveM localhost server without txAdmin

A vanilla FXServer reads server.cfg directly. Cfx.re’s example starts it from the server-data folder with FXServer.exe +exec server.cfg. For a test copy on the same machine, change the port only, as the example’s comment says, and add sv_lan:

endpoint_add_tcp "0.0.0.0:30125"
endpoint_add_udp "0.0.0.0:30125"
sv_lan true
sv_maxclients 8

Cfx.re’s endpoint_add_udp entry says the address and port must not be “already in use”, which is why the test server cannot share 30120 with the live one. On Enhanced, each endpoint_add_* command takes a single endpoint.

How to copy your live server to the test server

Resources and server.cfg

  1. Copy the resource folders you want to test with, keeping the same folder structure. For an escrowed resource, copy the .fxap file and every hidden file too: Cfx.re support’s fix for “Failed to verify protected resource” is to make sure those files were copied, and it warns that “Some FTP programs skip hidden or protected files”.
  2. Copy single lines, not the whole server.cfg. On a test server deployed from a recipe, Qbox’s docs give the rule: copy sv_maxclients, sv_enforceGameBuild and your scripts’ set or setr lines; do not copy sv_licenseKey, endpoint_add_tcp, endpoint_add_udp or mysql_connection_string, because the test server has its own key, ports and database. If you set TXHOST_MAX_SLOTS, keep sv_maxclients at or below it, since txAdmin enforces that limit. On a test server made by copying the whole live folder, change those four lines instead.
  3. Match the game build and pool sizes. sv_enforceGameBuild and increase_pool_size can only be set at startup, and Cfx.re says a client switching between servers with different pool sizes “would have to restart the game - similarly to how it works with sv_enforceGameBuild and sv_pureLevel”.

The database (Qbox, ESX and QBCore)

If your server does not use a database, skip this part. For a framework server, the test server needs a copy of the live data, never the live database itself. Qbox documents the copy in HeidiSQL:

  1. Export the live database. Right-click it, choose Export database as SQL, untick both Drop and Create under Database(s), tick Create and untick Drop under Table(s), set Data to Insert and Output to Single .sql file.
  2. Check the file. Search it for CREATE DATABASE and DROP DATABASE. If either is there, the export would write into the original database: delete it and export again.
  3. Create a new database (right-click the connection, Create new, Database), select it, then File, Run SQL file… and pick the export.
  4. Point the test server at the copy. In the test server’s server.cfg, change only the database name in mysql_connection_string, “the part after the last / and before the ?”.

For a database at a host, Qbox says to use the Export tab of phpMyAdmin and load the file into MariaDB on your PC the same way. If a second MariaDB on the same PC uses port 3307 instead of 3306, put 3307 after the host in the connection string.

How to keep a FiveM test server private

  • sv_lan true keeps the server off the public list. In the FXServer source, the connection handler only checks a player’s Cfx.re authentication ticket when sv_lan is false; with it on, that check is skipped. Do not open or forward the test server’s port to the internet while it runs in LAN mode.
  • sv_master1 "" does not hide a server. Cfx.re says it disables the Connect button but “cannot be used to de-list a server from the master list”.
  • A test server that remote staff must join needs sv_lan off, its own key and an allowlist. The allowlist guide covers the options.

How to test new assets on the test server

  1. Add the resource and load it without a full restart. In the txAdmin Live Console, refresh “Rescans the resources folder”, then ensure starts the resource or restarts it if it was running.
  2. Watch the console. A clean start shows no SCRIPT ERROR in the Live Console.
  3. Test in game. Press F8 and type tx to open the txAdmin in-game menu; Cfx.re lists god mode, spawning vehicles and noclip among its features, which is enough to try addon vehicles from FiveCrate’s vehicle category or walk through a new interior from the MLO category. For a fuller trainer, the vMenu recipe sets up a server-sided menu on Legacy and Enhanced; see the vMenu guide.
  4. Measure the cost. Developer commands such as resmon (CPU and memory per resource) and strdbg (what the streamer is loading) need a client in developer mode: on Legacy, launch FiveM with +set moo 31337 or use a non-production update channel; on Enhanced, set sv_devMode true on the server. The resmon guide explains the numbers. New scripts are worth a resmon check before they go live.
  5. Test with two players on one PC. On Legacy, make a second FiveM shortcut and add -cl2 after the closing quote of its Target field. On Enhanced, -cl2 is deprecated: set sv_devMode true, join, press F8, then Debug and Launch Additional Client. sv_devMode limits the server to 8 clients and Cfx.re says “Do not enable in production”, so keep it on the test server only.

When an asset passes, copy the exact same folder to the live server. Everything FiveCrate lists is in the asset catalogue.

Troubleshooting

Test server and live server fight over port 30120 or 40120

Both servers try to use the defaults. Set TXHOST_TXA_PORT and TXHOST_FXS_PORT in the test server’s start file, or change both endpoint_add_* lines on a vanilla server. Each endpoint must be “not already in use”.

Both servers share the same txAdmin admins and settings

Both servers use one txData folder. txAdmin “strongly” encourages separate txData folders for multiple servers, “As otherwise the admins.json file will conflict”. Set TXHOST_DATA_PATH to a folder inside the test server’s directory.

“The Server License does not appear to be valid.” in the deployer

The key field is empty or does not match a registration key format. Paste the full key generated for the test server in the Cfx Portal.

“You lack the required entitlement” only on the test server

Check that the test server’s key was generated on the Cfx account that holds the asset. On Enhanced, remember that Asset Escrow is not implemented yet. Cfx.re support’s first steps are to restart the server and check the key; then follow the entitlement error guide.

The “Connect to [ComputerName] on LAN” button is missing

Cfx.re’s setup page says to restart the FiveM client if the button does not show. You can always join with connect localhost:30125 (or :30120 for a test server on the normal ports) in the F8 console.

The game restarts every time you switch between live and test

The two servers use different sv_enforceGameBuild or increase_pool_size values. Copy the live values to the test server.

Next Steps

Browse Addon vehicles

Addon vehicles with custom handling, audio and visual modifications for FiveM servers.

Browse catalogue →

Official documentation and repository references