How to Set Up a FiveM Server (GTA V Roleplay)

Back to Knowledgebase
Game Servers 3 min read 2 views Updated Jun 2026

FiveM lets you run a custom GTA V multiplayer server with your own rules, jobs and roleplay scripts. The modern setup uses txAdmin, a web panel that handles installation, updates and management for you. Here is the clean way to get a server running.

If you want it ready instantly, a Vastrox FiveM plan ships with txAdmin and a base framework already installed.

Requirements

  • A Windows or Linux server (Windows is the most common for FiveM)
  • A strong single-core CPU, since FiveM leans on one core like most game servers
  • 4 GB RAM for a small server, 8 GB or more with heavy scripts
  • A free license key from the FiveM keymaster (keymaster.fivem.net)
  • Port 30120 open on both TCP and UDP

Step 1: Get a license key

Sign in at keymaster.fivem.net, register a new server key, and tie it to your server IP. You paste this key into the config later. It is free.

Step 2: Install the server with txAdmin

Download the latest server artifact for your OS from the official FiveM build list and run it. txAdmin opens a setup wizard in your browser on first launch:

  1. Open the txAdmin URL shown in the console.
  2. Create an admin account.
  3. Choose a recipe (a base framework like ESX or QBCore) or a blank server.
  4. Paste your license key when asked.

txAdmin downloads everything and starts the server.

Step 3: Configure server.cfg

This file controls the name, slots and which resources load:

  • sv_hostname for the name shown in the browser
  • sv_maxclients for player slots
  • set steam_webApiKey if you use Steam identifiers
  • ensure lines to start each resource

Set onesync on for servers above 32 slots and for most modern frameworks. It also improves how the server tracks entities.

Step 4: Add resources

Drop scripts and frameworks into the resources folder, then add an ensure resourcename line to server.cfg or start them from the txAdmin panel. Restart to load them.

Step 5: Connect

Open FiveM, press F8 for the console, and run:

connect your-ip:30120

Or find your server in the in-game browser by name and add it to favorites.

Keep it healthy

  • Manage from txAdmin. It gives you live restarts, scheduled restarts, player management and a console without touching the files.
  • Schedule restarts. Roleplay servers with many scripts benefit from a few restarts a day.
  • Watch one CPU core. If it pins at 100 percent, a script is too heavy. Profile and trim. See How to fix game server lag.

FAQ

Is a FiveM license key free?

Yes. You register a free key at the FiveM keymaster and tie it to your server. There is no charge for running a server.

How many players can a FiveM server hold?

32 by default, and up to hundreds with OneSync, though heavy roleplay scripts lower the practical limit. Per-core CPU speed is usually the cap.

ESX or QBCore?

Both are popular roleplay frameworks. QBCore is newer and very active; ESX is mature and widely documented. txAdmin can install either as a recipe.

Want it online now? Deploy a FiveM server with txAdmin and a framework ready to go.

Was this guide helpful? Our engineers are here 24/7 if you get stuck.