← All guides

Roleplay · Server guide

How to host a FiveM server: RAM, txAdmin, frameworks and setup

How to run a FiveM server: RAM sizing, txAdmin, server.cfg, ESX vs QBCore, the database behind them, and how GGHOST Cloud sets your server up for you.

GGHOST Cloud team26 October 20266 min read

FiveM
  • Starts at On request
  • Recommended RAM 8 GB
  • Ready in A few days
  • Control panel Pterodactyl

FiveM turns Grand Theft Auto V into a platform for custom multiplayer servers, and it is where most GTA roleplay communities live. A FiveM server is not a single game you switch on: it is a server runtime, a stack of resources, a framework that ties them together and, for almost every roleplay server, a database. Getting it right comes down to how much memory the stack needs, which framework you build on, and how carefully you add resources. This guide covers all three, then explains how we set a server up for you on GGHOST Cloud.

How a FiveM server works

The server software is called FXServer, and it is maintained by Cfx.re. You download it as an “artifact” build, and it runs everything players do not run on their own machines: synchronising players and vehicles, running server-side scripts and talking to the database.

Everything else is a resource: a folder with a manifest (fxmanifest.lua) and scripts in Lua, JavaScript or C#. Maps, cars, jobs, inventories, phones and the framework itself are all resources. The server reads server.cfg at start-up, top to bottom, and starts each resource you list with an ensure line. Because the file runs in order, load order matters: the database connector and framework core need to start before the scripts that depend on them.

Two more pieces are worth knowing:

  • The licence key. Every server needs a free key from the Cfx.re Portal, set as sv_licenseKey in server.cfg (or entered in txAdmin). Without it the server will not start.
  • txAdmin. A web-based management panel that ships with FXServer. It deploys servers from “recipes”, schedules restarts, shows a live console and handles player actions such as kicks, warnings and bans.

How much RAM does a FiveM server need?

On FiveM, memory is driven mostly by the resource stack and the streamed assets (custom cars, clothing and maps), not by the player count alone. These are the figures we size real servers at:

  • Up to 32 players: 8 GB. A light resource stack.
  • 32 to 64 players: 16 GB. A full framework and database.
  • 64+ players: 24 GB or more. Heavy roleplay stacks.

A server with a hundred custom vehicles and a large mapping pack can need more than a lightly scripted server with twice the players. Watch the memory graph at your busiest hour: if it sits above roughly 80%, size up before it becomes a problem.

You pay for memory on GGHOST Cloud, not player slots. sv_maxclients is a setting you choose in server.cfg, not a line on your invoice.

Larger servers also need OneSync, FiveM’s server-side state system, which you enable with set onesync on in server.cfg or from txAdmin’s settings. Most modern frameworks expect it to be on.

Frameworks and the database

A framework provides the shared building blocks that roleplay scripts rely on: characters, jobs, money, inventories and permissions. The choice matters because most resources are written for one framework and will not work on another without changes.

ESX

One of the oldest and most widely used frameworks, now maintained as ESX Legacy. A huge number of scripts target it, which makes it a safe choice if you plan to buy or download a lot of ready-made resources.

QBCore

A popular framework with its own large script ecosystem, and the base many newer servers start from.

Qbox

A newer fork of QBCore that aims to remain compatible with QBCore resources while modernising the core. Worth a look if you like QBCore’s approach but want a more actively reworked base.

Standalone

You can also run FiveM without a framework, for a racing, drifting or freeroam server where nobody needs a job or a bank account.

ESX, QBCore and Qbox all store their data in MySQL or MariaDB, usually through the oxmysql resource, which reads its connection details from a mysql_connection_string setting in server.cfg. On our Pterodactyl panel you have database access alongside the server, so the framework and its data sit together.

Performance tips that actually help

  • Measure before you guess. Type resmon 1 in the client console (F8) to see which resources are using the most CPU time, and use the built-in profiler command for a deeper look. One badly written script often accounts for most of the hitching.
  • Watch for tight loops. Scripts that run every frame without a wait, or query the database on every tick, are the most common cause of a slow server.
  • Keep streamed assets in check. Every custom car, clothing pack and map adds to what players download and what the server holds. Remove what nobody uses.
  • Index your database. Large roleplay servers build up big tables; slow queries show up as delays when players load in, buy items or open inventories.
  • Restart on a schedule. A daily restart clears out leaks from long-running scripts. Schedule it in txAdmin or as a scheduled task in our panel, with an in-game warning beforehand.

Adding resources safely

Upload resources into the resources folder through the panel’s file manager or over SFTP, add an ensure line for each one in server.cfg, and restart. Watch the console for errors on start-up. A few habits avoid most problems:

  • Check the framework and version. A QBCore script will not run on ESX, and a script written for an old framework version can break on a newer one.
  • Mind the order. Dependencies (oxmysql, the framework core, libraries such as ox_lib) must be ensured before the scripts that use them.
  • Run the SQL. Many resources ship with an .sql file that creates their tables. Import it into the database before starting the resource.
  • Only use trusted sources. Leaked or “free” copies of paid scripts are a common route for backdoors that hand control of your server to someone else.

Backups: the server and the database

A FiveM server has two halves that both need backing up: the files (resources, server.cfg, txAdmin data) and the database that holds every character, vehicle and bank balance. Losing either one hurts.

On GGHOST Cloud, backups run on a schedule you set and restore from the panel without a ticket. Take a manual backup and a database export before any framework update, large resource change or artifact upgrade. If you are moving from another host, bring your resources, server.cfg and a database dump, and we can get you running on the same data.

Getting your FiveM server on GGHOST Cloud

FiveM is set up on request at the moment, rather than ordered through checkout.

  1. Ask us on Discord (or open a ticket) with the framework, resources and player count you need. If you are migrating, tell us what you are bringing.
  2. We size it and quote a monthly price. We use the sizing above as a starting point and adjust it for your resource stack.
  3. We set it up on our Pterodactyl panel, usually within a few days, in the region closest to your players. Singapore and Europe (France–Germany border) are live today; the United States (East, Central and West), the United Kingdom, India, Japan and Australia are available on demand.
  4. Add your licence key and connect. Your server address and port are shown in the panel; players join through FiveM’s direct connect or the server list.

From there you have the full panel: live console, file manager, SFTP, scheduled tasks for restarts and announcements, sub-users for your staff, and database access. Every node is behind DDoS protection from our network providers, on every plan, and you can change the server build, artifact version or startup flags from the panel and restart. There is no setup fee and no contract; billing runs through app.gghost.cloud, and support comes from the people who run the servers, on Discord and at hello@gghost.cloud.

The short version

Get a free licence key from the Cfx.re Portal, manage the server through txAdmin, pick a framework based on the scripts you want, and treat the database as part of the server. Start at 8 GB for a light stack and 16 GB for a full roleplay framework, profile with resmon before buying more memory, and back up files and database before every big change.

Sizing

How much RAM a FiveM server needs.

What we size real servers at. Mods, map size and world age move these numbers up.

Up to 32 players 8 GB
Light resource stack
32 – 64 players 16 GB
Full framework and database
64+ players 24 GB+
Heavy roleplay stacks

How it works at GGHOST Cloud

From request to running server.

  1. 01 Ask on Discord Tell us the FiveM build, mods and player count you need.
  2. 02 We size it We recommend the RAM and region, and quote a monthly price.
  3. 03 We set it up Installed on our Pterodactyl panel, usually within a few days.
  4. 04 Invite your players Console, file manager, SFTP and backups, all in one panel.

Included on every server

The platform behind your FiveM server.

Full Pterodactyl panel

Console, file manager, SFTP, scheduled tasks, sub-users and database access. Not a cut-down skin over it.

Backups on a schedule

Set the cadence you want and restore to a point in time from the panel, without opening a ticket.

DDoS protection included

Every node sits behind DDoS protection from our network providers, on every plan — not an upsell on the checkout page.

Switch version or build anytime

Change the server build, game version or startup flags from the panel and restart. No reinstall, no ticket.

Move region once per cycle

If your players move, the server can follow. We handle the world and config transfer.

No player-slot billing

You pay for memory. Slots are a config value you set, not a line item we charge for.

FiveM server FAQ

Questions players ask us.

Do I need a FiveM licence key?

Yes — server keys are issued free by Cfx.re and you add yours in the panel. We do not resell or bundle them.

Why does my FiveM server hitch when it is not short of RAM?

Usually one resource is spending too long on each server tick. Use the resmon and profiler tools to find it, check for scripts running tight loops or slow database queries, and fix or replace that resource before adding memory.

Should I start with ESX, QBCore or Qbox?

Pick the framework whose scripts you plan to use, because most paid and free resources are written for one of them. ESX and QBCore have the largest script libraries; Qbox is a newer fork of QBCore that aims to stay compatible with QBCore resources.

Want a FiveM server?

Tell us what you need on Discord and we will size it and set it up on our Pterodactyl panel.