Zum Inhalt springen
Getting started

Getting started with FiveM servers and development

What FiveM, FXServer, txAdmin and Cfx.re are, how the pieces fit together, and the order to read these docs in to run a server or write scripts.

Diese Doku ist vorerst auf Englisch.

Last updated

These docs take you from “I want a FiveM server” to running one, managing it with txAdmin, installing resources and frameworks, and writing your own scripts. Everything here is checked against the official Cfx.re documentation and the source repositories on GitHub. When something depends on a version, the page says so.

If you only want to get a server online today, jump to Setting up a server on Windows or on Linux. If you want to write code, start with Your first resource. Come back to this page when a word stops making sense.

The pieces and who makes them

FiveM is a modification framework for Grand Theft Auto V that lets people run their own multiplayer servers with custom code, maps, vehicles and game modes. A few names show up everywhere:

Name What it is
Cfx.re The team and platform behind FiveM (GTA V) and RedM (Red Dead Redemption 2). Cfx.re is owned by Rockstar Games. The forum is forum.cfx.re, the docs are docs.fivem.net.
FiveM client What players install. It launches their own copy of GTA V and connects to servers.
FXServer The server program you run. Also called the “Cfx platform server”. On Windows it is FXServer.exe, on Linux you start it through run.sh.
Server artifacts The FXServer builds you download. Each build has a number, for example 2xxxx. See Updating artifacts safely and our Artifacts page.
txAdmin The web panel and in-game admin menu that ships inside FXServer. It deploys servers from recipes, restarts them, bans players and more.
Cfx.re Portal portal.cfx.re, where you create the free server license key that every server needs.
Resources Folders of scripts and assets that FXServer loads. Everything a server does beyond vanilla GTA is a resource.
Frameworks Big sets of resources that add players, jobs, money and inventories, for example QBCore, Qbox and ESX Legacy. See Frameworks.

Note

In July 2026 Cfx.re opened early access for FiveM for GTA V Enhanced, which runs on the newer Enhanced edition of the game with a separate server build called Cfx Server. The classic FiveM, now called Legacy, keeps running and is still what almost every server and resource targets. These docs cover Legacy FXServer unless a page says otherwise. See FiveM Legacy and Enhanced for what changes.

How it fits together

When you start a server, this is what happens:

  1. You run FXServer. With no arguments it starts txAdmin, which opens a web panel on port 40120.
  2. txAdmin (or you, by hand) starts FXServer with a server.cfg. That file sets the server name, the license key, player slots, endpoints and which resources to start.
  3. FXServer reads the resources folder, loads every resource you ensure, and runs their server scripts.
  4. A player connects on port 30120. Their client downloads the client scripts, NUI pages and streamed assets (models, textures, maps) of your resources, then joins.
  5. Client scripts and server scripts talk to each other with events, and to the game through natives.
A typical server folder after a txAdmin deploy
FXServer/
├─ server/            the artifact: FXServer.exe (Windows) or run.sh + alpine/ (Linux)
└─ txData/
   ├─ admins.json     txAdmin accounts
   └─ MyServer.base/  your server data folder (any name you pick in the deployer)
      ├─ server.cfg
      └─ resources/
         ├─ [cfx-default]/   mapmanager, spawnmanager, chat...
         └─ [local]/         your own resources

A learning path through these docs

Follow the sections in this order. Each page links to the next one.

1. Understand what you need

  • Glossary: every term you will meet, in one place.
  • Requirements: hardware, Windows or Linux, and the legal basics (license, Rockstar content, monetisation).

2. Get a server online

3. Run it day to day with txAdmin

4. Add content

5. Write your own scripts

6. Watch instead of read

The video tutorial archive groups hand-picked YouTube tutorials into courses: running your first server, txAdmin, frameworks, Lua scripting, NUI, streaming assets, CodeWalker and Blender with Sollumz.

Where to get help

Tip

When you ask for help, paste the exact error from the server console or the F8 client console, your artifact build number and your server.cfg (with the license key and database password removed). That answers half the questions people will ask you.