Your FiveM server.cfg,ready for ESX, Qbox or QBCore.

Ports, OneSync, database connection, admins and resources to start, in the order of the official recipes. The file is built in your browser: your licence key is never sent to us.

Framework

The resources from the official docs.fivem.net template.

Players
Database (oxmysql)
Keys and admins

server.cfgNone (base resources)

  • Without a licence key, the server won't start: create one on portal.cfx.re.
# server.cfg généré avec https://arkya.gg/outils/server-cfg-fivem
# Nom, description, tags, langue et icône du serveur se règlent sur https://portal.cfx.re, plus ici.

# Écoute du serveur : sur un hébergeur, garde le port qu'il t'attribue.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# Joueurs et synchronisation
set onesync on
sv_maxclients 48
sv_endpointPrivacy true
sv_scriptHookAllowed 0

# Administrateurs
add_ace group.admin command allow
add_ace group.admin command.quit deny

# Clés : ne publie jamais ce fichier tel quel.
sv_licenseKey "remplace-par-ta-cle"
set steam_webApiKey "none"

# Ressources (Aucun (ressources de base)) : elles doivent exister dans ton dossier resources.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog

What you no longer set in server.cfg

The server name (sv_hostname), its description (sv_projectName, sv_projectDesc), tags, language and icon are now set on portal.cfx.re. The FiveM documentation marks these commands as deprecated, and txAdmin recipes no longer write them: neither does the generator.

How many players?

The limit depends on OneSync and your Cfx.re subscription, not on your host.

FiveM player limits according to Cfx.re (checked on 31/10/2026)
SetupMax playersPrice at Cfx.re
Without OneSync31free
OneSync, no subscription48free
Element Club Argentum64$15 per month, excluding tax
Element Club Aurum128 (OneSync Infinity)$25 per month, excluding tax
Element Club Platinum2,048 (OneSync Infinity)$50 per month, excluding tax

Sources: the OneSync documentation and the Cfx.re Server hosting page. Check them before you subscribe: the tiers can change.

The database connection

ESX, Qbox and QBCore store accounts, inventories and vehicles in MySQL or MariaDB, through the oxmysql resource. It reads the mysql_connection_string convar, which must be set before resources start: the generator writes it at the top of the file.

oxmysql misreads some characters in credentials: ; , / ? : @ & = + $ #. Pick a password without them. On an Arkya FiveM server, the free MariaDB database is created with the server: copy its credentials into the form.

Questions we get asked

  • Where do I find my licence key?

    On portal.cfx.re, with your Cfx.re account: create a key for your server and paste it here.

  • ESX, Qbox or QBCore?

    All three are for roleplay. ESX Legacy is the oldest and most widespread; Qbox builds on QBCore, which the official txAdmin recipe index now marks as deprecated. For a new server, compare their documentation before choosing.

  • The server says “Couldn't find resource” at startup

    A resource named in an ensure line is not in your resources folder. The generator follows the order of the official recipes: install the framework with its txAdmin recipe, or remove the line for the missing resource.

  • Can I share my server.cfg?

    Not as it is: it contains your licence key and your database password. Replace them with dummy values before publishing it.

  • Are my keys sent to Arkya?

    No. The file is built in your browser; nothing you type leaves your machine.

A FiveM host to run this file

txAdmin, a free MariaDB database for oxmysql, live console, in Paris. Billed by the minute, no commitment.

See FiveM hosting