xgaming.tools

FiveM Server Config Generator

Free FiveM server.cfg generator. Configure hostname, OneSync, game build (up to 3570), framework (QBCore, QBox, ESX Legacy), resources, RCON, pure level, security. Copy or download ready-to-use server.cfg.

Server Identity

Network & Performance

Security & Licensing

Framework

Will pre-load: 13 core resources for qbcore.

Custom Resources (one per line)

One resource per line (no "ensure" prefix needed β€” we'll add it).

Generated server.cfg

# ══════════════════════════════════════════════════════════
# My Server β€” FiveM server.cfg
# Generated at https://xgamingserver.com/tools/fivem/server-config
# ══════════════════════════════════════════════════════════

# ─── Endpoints ─────────────────────────────────────────────
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# ─── Identity ──────────────────────────────────────────────
sv_hostname "πŸ”₯ My FiveM Server | Roleplay"
sets sv_projectName "My Server"
sets sv_projectDesc "A brand new FiveM roleplay community"
sets tags "roleplay, rp, custom, community"
sets locale "en-US"
sv_maxclients 64

# ─── Game build (enforce FiveM version) ────────────────────
sv_enforceGameBuild 3570

# ─── OneSync ───────────────────────────────────────────────
set onesync on
set onesync_distanceCullVehicles true

# ─── Licensing ─────────────────────────────────────────────
# Get your license key from https://keymaster.fivem.net/
sv_licenseKey YOUR_LICENSE_KEY_HERE

# ─── Security ──────────────────────────────────────────────
sv_scriptHookAllowed 0
sv_pureLevel 1
# rcon_password "change-this-to-enable-rcon"

# ─── Default resources (always needed) ─────────────────────
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog
ensure scoreboard
ensure playernames
ensure fivem
ensure fivem-map-skater

# ─── QBCORE framework ────────────────────────
ensure oxmysql
ensure qb-core
ensure qb-phone
ensure qb-inventory
ensure qb-hud
ensure qb-spawn
ensure qb-smallresources
ensure qb-multicharacter
ensure qb-weapons
ensure qb-vehiclekeys
ensure qb-garages
ensure qb-ambulancejob
ensure qb-policejob

# ─── Server admins (principal-based ACL) ───────────────────
# Replace "license:YOUR_LICENSE_HASH" with your own (get via server console: "players")
# add_principal identifier.license:aabbccddeeff1234 group.admin

# ─── Discord log (optional) ────────────────────────────────
# set discord_webhook "https://discord.com/api/webhooks/..."

# ══════════════════════════════════════════════════════════
# End of config. Start your server: ./run.sh or server.bat
# ══════════════════════════════════════════════════════════

Every FiveM Server Needs a server.cfg

Running a FiveM server starts with a valid server.cfg β€” Rockstar enforces it, FiveM's infrastructure validates it, and your players judge your server by it (hostname in the server browser, tags for discovery, Discord + website metadata). This generator walks you through every required and recommended setting with sensible defaults.

Pick your framework (QBCore is the most popular roleplay framework, QBox is the modern fork, ESX Legacy is the long-standing classic) and the generator pre-loads the correct core resources β€” ensuring oxmysql, core scripts, job modules, and inventory. You can add your own custom resources on top. Skip frameworks entirely for vanilla/freeroam servers.

Game build (sv_enforceGameBuild) locks your server to a specific GTA V DLC version β€” from 1604 (base) through 3570 (latest Money Fronts). Build mismatches are the #1 cause of players getting stuck on "server loading". Pick the build you want; update when you're ready to use new DLC content.

Security settings matter: sv_pureLevel 1 blocks modified game files (the recommended baseline for RP servers), sv_scriptHookAllowed 0 blocks most cheat mods. RCON password unlocks remote admin commands (use a strong one or leave disabled). Copy the generated config or download it directly β€” then upload to your XGamingServer FiveM hosting via the admin panel.

FiveM Server Config Generator β€” FAQ

Where do I put the server.cfg file on my FiveM server?

Place it at the root of your server folder (where FXServer.exe / run.sh lives). XGamingServer hosts it at /server-data/server.cfg and you can edit it through the admin panel or SFTP. The server reads it on startup.

What's the difference between OneSync Legacy, On, and Infinity?

OneSync Off = vanilla 32-player sync. Legacy = older OneSync impl (32 player cap). On = recommended for 32-64 players. Infinity = designed for 64+ players, required for servers with 128+ slots. Infinity needs onesync_workaround763185 set.

What FiveM game build should I use?

Latest (3570 Money Fronts) unless you're running content from an older DLC. Keep your game build matched to your scripts β€” a build-mismatched script will crash the server on load. If you have custom clothing/maps requiring specific DLCs, pick the matching build.

What's sv_pureLevel in FiveM?

Pure level controls client asset verification. 0 = off (players can use any modded game files, highest cheat risk). 1 = block non-game files (recommended default). 2 = block client modifications entirely (strict, for competitive servers). Most RP servers run 1.

Can I generate server.cfg for QBCore / QBox / ESX?

Yes β€” pick your framework from the dropdown and the generator will pre-load the core resources (qb-core, qbx_core, es_extended + all essential modules) so you don't need to hand-type ensure statements.

You might also need

Built-In Tool

Config Tool Built Into XGamingServer

Get managed FiveM hosting with this tool in your panel β€” configure, deploy, and play in minutes. No file uploads needed.

Built-In Config ToolInstant Server SetupDDoS ProtectionExpert 24/7 Support
Get 40% OFFNo setup fees Β· Cancel anytime