background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Kategoriler

FiveM Server Setup Guide

fivem gta txadmin cfx setup 0 kişi bunu faydalı buldu

This guide walks you through setting up your FiveM (GTA V multiplayer) server hosted with Legion Hosting — from obtaining your CFX license key and configuring TXAdmin, to editing server.cfg and connecting players.

Before you begin: Make sure you have your GPanel login credentials from your welcome email and that your FiveM server has been created in your account. If you have not started a server before, read the Server Startup Guide first.

Prerequisites

  • A Legion Hosting FiveM server (active in your account)
  • A Cfx.re forum account (free — required to generate your license key)
  • Access to GPanel
  • FiveM client installed on your PC (fivem.net)

Step 1: Obtain Your CFX License Key

Every FiveM server requires a unique license key from Cfx.re (the developers of FiveM). This key is free and tied to your Cfx.re account.

  1. Go to https://keymaster.fivem.net/ and log in with your Cfx.re forum account.
  2. Click New Server (or Register a new server).
  3. Fill in the details:
    • Label: A friendly name for your server (e.g. "My Legion FiveM Server")
    • Server IP Address: Enter your server's IP address from GPanel (see How to Find Your Server IP and Port)
    • Server Type: Select the appropriate type (usually "Other / Apache / nginx")
  4. Click Generate.
  5. Copy the generated license key — you will need it in the next steps.
Keep your license key private. Do not share it publicly. If your key is compromised, you can revoke it on the Keymaster page and generate a new one.

Step 2: First Server Start and TXAdmin Setup

FiveM servers hosted with Legion Hosting include TXAdmin — a web-based management panel that runs alongside your FiveM server. On first start, TXAdmin will guide you through initial setup.

Starting the Server

  1. Log in to GPanel and select your FiveM server.
  2. Go to the Startup tab and locate the FIVEM_LICENSE (or similarly named) variable. Paste your CFX license key here and save.
  3. Go to the Console tab and click Start.
  4. Watch the console output. On first start, the server will download required FiveM artifacts — this can take a few minutes.
  5. Once TXAdmin is ready, you will see a message in the console containing the TXAdmin URL and a PIN code.
Finding your TXAdmin URL: TXAdmin runs on a separate port from the game server. Check the console output or the GPanel Network tab for the TXAdmin port. The URL format is http://YOUR_SERVER_IP:TXADMIN_PORT.

Completing TXAdmin Setup

  1. Open the TXAdmin URL in your browser.
  2. Enter the PIN displayed in the GPanel console output.
  3. Create your TXAdmin admin account (username and password).
  4. TXAdmin will walk you through a setup wizard:
    • Server Name: Choose the name displayed in the FiveM server browser.
    • Deployment Type: Select a template (e.g. "Popular Recipes" for a preconfigured base, or "Remote URL / Template" if you have a custom setup).
    • Server Data Folder: Leave this at the default unless you have a specific reason to change it.
    • CFX Key: If prompted again, paste your license key.
  5. Complete the wizard and let TXAdmin finish deploying the server files. This may take a few minutes.
Save your TXAdmin credentials. If you lose access to your TXAdmin admin account, you will need to delete the TXAdmin profile and re-run setup. Write down your username and password.

Step 3: Configure server.cfg

The server.cfg file is the main configuration file for your FiveM server. TXAdmin generates a basic one during setup, but you will want to review and customise it.

Accessing server.cfg

  1. In GPanel, click the Files tab.
  2. Navigate to your server data folder (typically the root directory or a folder created by the TXAdmin template).
  3. Click server.cfg to open it in the inline editor.

Essential Settings

Setting Description Example
sv_hostname Server name shown in the FiveM server browser "My Legion FiveM Server"
sv_licenseKey Your CFX license key from Keymaster "cfxk_xxxxxxxxxxxxxxxxxxxx"
sv_maxclients Maximum players allowed on the server 48
endpoint_add_tcp TCP listening address and port "0.0.0.0:YOUR_PORT"
endpoint_add_udp UDP listening address and port "0.0.0.0:YOUR_PORT"
sv_endpointprivacy Hides player IP addresses in the server list true
sets sv_projectName Short project name shown in the server browser details "My RP Server"
sets sv_projectDesc Short description shown in the server browser details "A custom roleplay server"

A minimal server.cfg example:

# Server Identity
sv_hostname "My Legion FiveM Server"
sets sv_projectName "My RP Server"
sets sv_projectDesc "A custom roleplay server hosted by Legion Hosting"

# License Key
sv_licenseKey "cfxk_YOUR_KEY_HERE"

# Network — use the port assigned in GPanel
endpoint_add_tcp "0.0.0.0:YOUR_PORT"
endpoint_add_udp "0.0.0.0:YOUR_PORT"

# Player Limit
sv_maxclients 48

# Privacy
sv_endpointprivacy true

# Resources
ensure mapmanager
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure chat
Port must match GPanel. The port in endpoint_add_tcp and endpoint_add_udp must match the game port assigned to your server in GPanel. Check the GPanel Network tab for your specific port.

Step 4: Connecting to Your FiveM Server

Once your server is configured and running, players can connect using either the FiveM server browser or a direct connect.

Direct Connect

  1. Open the FiveM client.
  2. Press F8 to open the FiveM console, or click the Direct Connect button on the home screen.
  3. Enter your server's IP and game port in the format IP:PORT.
  4. Click Connect.
Finding your IP and port: Check the GPanel Network tab or see How to Find Your Server IP and Port.

Server Browser

  1. Open the FiveM client and click Play.
  2. In the server browser, search for your server name (the sv_hostname value from server.cfg).
  3. Click your server and then click Connect.
Server not showing in the browser? New servers can take 5-15 minutes to appear in the FiveM server list after starting. Use direct connect in the meantime. Also verify that your sv_licenseKey is valid and the ports in server.cfg match your GPanel network configuration.

Managing Your Server with TXAdmin

After initial setup, TXAdmin provides a web dashboard for day-to-day server management. Access it at http://YOUR_SERVER_IP:TXADMIN_PORT.

Feature Description
Dashboard View server status, player count, and performance metrics at a glance.
Players See online players, kick or ban players, view player history.
Live Console Execute server commands in real time, same as the in-game console.
Resources Start, stop, and restart individual resources without restarting the entire server.
Server Log View action logs for auditing player and admin actions.
CFG Editor Edit server.cfg directly from TXAdmin without needing the GPanel file manager.
Scheduled Restarts Configure automatic restarts at set intervals to keep the server fresh.

Getting Help

If you have followed this guide and are still experiencing issues:

  1. Copy any error messages from the GPanel console or TXAdmin log.
  2. Note which step you are stuck on and what you have already tried.
  3. Open a support ticket at https://legionhosting.net/submitticket.php with this information. Our team will assist you as quickly as possible.

Related Articles


Bu makale faydalı oldu mu?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.