Skip to main content

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:

  1. Stop your FiveM server completely:
    • Stop the server via the game panel, not just within TXAdmin.
  2. Locate the configuration file:
    • Navigate to the File Manager in your game panel.
    • Open the directory for your server, e.g., fivem-1800 (replace 1800 with your server ID).
  3. 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 the webServer section.
  4. Save and restart:
    • Save the changes to config.json.
    • Start your FiveM server from the game panel.
  5. Test the commands:
    • Join the server and verify that /tx or /txadmin commands now work.

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

  1. Stop your FiveM server:
    • Fully stop the server using the game panel.
  2. Access the config.json file:
    • In the File Manager, locate your server directory txData/default
    • Open and edit config.json.
  3. Add or update the webServer section:
    • Ensure the webServer section includes "disableNuiSourceCheck": true, as shown in the example above.
  4. Save and restart:
    • Save the modified config.json.
    • Restart the server via the game panel.
  5. Verify functionality:
    • Test the /tx or /txadmin commands in-game to confirm they are working.

If the issue persists, consult the official TXAdmin documentation or support channels for further assistance.