Fivem setup

A beginner-friendly overview of getting a FiveM server up and running.

What You Need

Requirement
Details

VPS or Dedicated Server

Windows Server 2019+ or Linux (Ubuntu recommended)

GTA V License Key

From your Cfx.re account — free

FiveM Artifacts

txAdmin

Comes bundled with modern FiveM artifacts

A Framework

ESX or QBCore (optional but recommended for RP servers)

1

Download FiveM Server Artifacts

2

Get Your License Key

3

Set Up txAdmin

  • Run FXServer.exe (Windows) or ./run.sh (Linux)

  • Open your browser and go to http://localhost:40120

  • Follow the txAdmin setup wizard

  • Paste your license key when prompted

  • Choose a deployment type — Recipe Deployer is easiest for beginners

4

Configure server.cfg

Your server.cfg is the main config file. Key settings:

server.cfg
# Server name shown in the server list
sv_hostname "My FiveM Server"

# Your license key
sv_licenseKey "your_license_key_here"

# Max players
sv_maxClients 32

# Start resources
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure hardcap
ensure rconlog

# Add your custom resources below
ensure es_extended
ensure esx_menu_default
5

Add Resources

  • Download a resource (script or map)

  • Extract it into your resources/ folder

  • Add ensure resource-name to your server.cfg

  • Restart your server

circle-exclamation
6

Open Your Ports

For players to connect you need to open these ports on your firewall/router:

Port
Protocol
Purpose

30120

TCP + UDP

Main FiveM connection

40120

TCP

txAdmin web panel

Common First-Time Issues

chevron-rightServer doesn't show in listhashtag

Check your license key and make sure port 30120 is open.

chevron-rightResource won't starthashtag

Check the console for errors — usually a missing dependency.

chevron-rightPlayers can't connecthashtag

Verify firewall rules and that the server is fully started.

chevron-righttxAdmin won't openhashtag

Make sure nothing else is using port 40120.

💬 Need help? Open a support ticket in our Discordarrow-up-right