FiveM | /tx command not working in game
If the /tx
or /txadmin
commands are not functioning in-game, this is a known issue in TXAdmin. The issue arises because TXAdmin struggles to select the correct interface for the Native User Interface (NUI) when multiple network interfaces are present, such as on Hyper Layer nodes. The default FiveM setting uses 0.0.0.0
, which is incompatible in this scenario. Below are the steps to resolve this issue for FiveM Legacy and txAdmin v8 and above.
FiveM Legacy
Follow these steps to fix the /tx
command issue in FiveM Legacy:
- Stop your FiveM server completely:
- Stop the server via the game panel, not just within TXAdmin.
- Locate the configuration file:
- Navigate to the File Manager in your game panel.
- Open the directory for your server, e.g.,
fivem-1800
(replace1800
with your server ID).
- Edit the
config.json
file:- Right-click
config.json
and select "Edit". - Find the
webServer
section or add it if it doesn't exist. - Set
"disableNuiSourceCheck": true
within thewebServer
section.
- Right-click
- Save and restart:
- Save the changes to
config.json
. - Start your FiveM server from the game panel.
- Save the changes to
- Test the commands:
- Join the server and verify that
/tx
or/txadmin
commands now work.
- Join the server and verify that
txAdmin v8 and Above
For txAdmin v8 and later, the config.json
structure may differ slightly. Below is an example config.json
with dummy data, showing how to configure disableNuiSourceCheck
to resolve the /tx
command issue.
{
"version": 2,
"general": {
"serverName": "Example Server"
},
"server": {
"dataPath": "/path/to/server/data/"
},
"discordBot": {
"enabled": true,
"token": "DISCORD_BOT_TOKEN",
"guild": "123456789012345678",
"warningsChannel": "987654321098765432",
"embedConfigJson": "{\"onlineString\":\"🟢 Online\",\"onlineColor\":\"#0BA70B\",\"partialString\":\"🟡 Partial\",\"partialColor\":\"#FFF100\",\"offlineString\":\"🔴 Offline\",\"offlineColor\":\"#A70B28\",\"buttons\":[{\"emoji\":\"123456789012345678\",\"label\":\"Connect\",\"url\":\"{{serverJoinUrl}}\"},{\"emoji\":\"987654321098765432\",\"label\":\"Community Discord\",\"url\":\"https://discord.gg/example\"},{\"emoji\":\"😊\",\"label\":\"Visit Us\",\"url\":\"https://example.com\"}]}"
},
"whitelist": {
"mode": "discordRoles",
"rejectionMessage": "Please join our Discord and request to be whitelisted.",
"discordRoles": [
"111222333444555666"
]
},
"webServer": {
"disableNuiSourceCheck": true
}
}
Steps for txAdmin v8 and Above
- Stop your FiveM server:
- Fully stop the server using the game panel.
- Access the
config.json
file:- In the File Manager, locate your server directory
txData/default
- Open and edit
config.json
.
- In the File Manager, locate your server directory
- Add or update the
webServer
section:- Ensure the
webServer
section includes"disableNuiSourceCheck": true
, as shown in the example above.
- Ensure the
- Save and restart:
- Save the modified
config.json
. - Restart the server via the game panel.
- Save the modified
- Verify functionality:
- Test the
/tx
or/txadmin
commands in-game to confirm they are working.
- Test the
If the issue persists, consult the official TXAdmin documentation or support channels for further assistance.