Prerequisites
- A computer running Windows; the guide was tested on Windows 11 Home.
- A FiveM server installed with txAdmin that already starts up.
- Access to txAdmin's "CFG Editor" to change server.cfg.
- Access to your Cfx.re portal account to manage the server key.
Tested on
Tested on: Windows 11 Home, with the FiveM server for Windows build 38435 and txAdmin 8.1.2, on 2026-12-01, on kraslich's computer. The firewall, the router and connections from another network could not be tested.
Use the recommended server
FiveM's "Server Download" page offers a "Recommended" branch and a "Latest" one. On 2026-12-01 the versions API listed build 38435 with txAdmin 8.1.2 as the recommended one, and 38781 as the latest. This guide uses the recommended one. The page says it can be used to create a new server or update an existing one, but it does not describe how to update, and updating has not been tested. Your txAdmin data is in the txData folder, next to the server folder.
According to the documentation of docs.fivem.net (opens in a new tab) · checked on 1 Dec 2026 · https://changelogs-live.fivem.net/api/changelog/versions/win32/server.
Do not open the txAdmin panel port
By default txAdmin listens on port 40120 and the game server on 30120, both on all interfaces. That means the panel may be reachable from your local network, and this guide does not restrict it. Log in to the panel from your own computer with "Login with Cfx.re" or with the backup password. If you ever open ports on the router or in the firewall, open only the game port (30120, TCP and UDP), the one the txAdmin warning mentions, and not 40120. Opening ports is outside the scope of this guide because every router is different.
According to the documentation of raw.githubusercontent.com (opens in a new tab) · checked on 1 Dec 2026 · (; observed in the lab).
Harden server.cfg
In txAdmin's "CFG Editor", add these two lines to server.cfg, press "Save File" and restart the whole server. The first, "sv_scriptHookAllowed false", is already the default value according to the documentation. The documentation warns that allowing Script Hook V makes the server vulnerable. The second, "sv_enableNetworkedSounds false", stops the NETWORK_PLAY_SOUND_EVENT sound event, which malicious people often use, from being routed through the server. The original template does not define "rcon_password", so RCon stays disabled.
sv_scriptHookAllowed false
sv_enableNetworkedSounds falseAccording to the documentation of docs.fivem.net (opens in a new tab) · checked on 1 Dec 2026 · (; observed in the lab).
Look after your licence key
"sv_licenseKey" is the server key and is stored in plain text in server.cfg. Do not publish it, paste it into screenshots or share server.cfg with the key in it. If you think it has leaked, deactivate it at portal.cfx.re with "DEACTIVATE"; the portal's warning says that doing so also deactivates any server connected to that key. Generate another one with the "+" card, change the value of "sv_licenseKey" in server.cfg and restart. The portal also offers "REGENERATE KEY", which was not tested. In the test, the console showed the key truncated in an error message.
According to the documentation of docs.fivem.net (opens in a new tab) · checked on 1 Dec 2026 · (; portal observed on 2026-11-20).
Check what you install before you start it
FiveM says that community resources are used at your own risk and that they should be chosen carefully. Before putting a resource in server.cfg, search its .lua files for the words PerformHttpRequest, loadstring and os.execute with the Windows findstr command, which you run inside the resources folder. That list of words is a lab criterion, not one from the documentation, and the search only looks at .lua files. If results come up, check what they are used for, because showing up proves nothing bad: in the lab, 1 of 224 .lua files produced a result and it was an official resource. Getting no results does not prove the resource is clean either. A resource with escrow comes encrypted and cannot be reviewed.
findstr /s /i /m /c:"PerformHttpRequest" /c:"loadstring" /c:"os.execute" *.luaAccording to the documentation of docs.fivem.net (opens in a new tab) · checked on 1 Dec 2026 · (; observed in the lab).
Back up txData and server.cfg
txAdmin stores its data in the txData folder. If you accepted the suggested path in "Data Location" when setting up the server, the server folder, with its server.cfg and its resources, is inside txData. Copy the whole txData folder to another disk or a private cloud fairly often and before updating.
According to the documentation of raw.githubusercontent.com (opens in a new tab) · checked on 1 Dec 2026 · https://raw.githubusercontent.com/citizenfx/txAdmin/v8.1.2/docs/env-config.md.
Troubleshooting common errors
"Warning: sv_endpointPrivacy has been removed"
There is an "sv_endpointPrivacy" line in server.cfg and build 38435 states that this variable no longer exists and must be deleted. Delete it from server.cfg.
"Fatal Error: Could not authenticate server license key"
The server does not start because the key does not exist or was copied incorrectly. The test showed the message "The specified key (cfxk...UEBA) does not exist.". Copy the key again from the key's card ("Copy Key") or generate a new one.
"You can only have up to three active servers at any one time."
You already have three active keys. Deactivate one you do not use with "DEACTIVATE" and the "+" card will appear.
Players with Script Hook V cannot join
This is expected with "sv_scriptHookAllowed false". The documentation says that allowing it "makes the server vulnerable to security issues". Leave it set to false.
What has not been checked
What has not been verified: the Windows firewall, the router and the connection from another network. Updating the server, making a full backup, the effect of the settings inside the game and whether deactivating a leaked key makes it unusable were not checked either. The 40-minute duration is an estimate.
Transparency
Use of AI: the AI carried out the lab tests and wrote this guide using the FiveM and txAdmin documentation. There are no affiliate links.
Last reviewed: 1 Dec 2026 · If something changed, let us know.