Generate a heavy, production-ready server.cfg file for FiveM
This is the most advanced server.cfg generator online. Build your configuration with OneSync, database connections, txAdmin settings, game build enforcement, and framework-specific resources all in one place.
Enable Database
Generates connection string for oxmysql
OneSync (Legacy)
Required for 32+ players
OneSync Infinity
Required for 64+ players
txAdmin Support
Adds txAdmin configurations
pma-voice Audio
Adds native audio settings
Allow ScriptHook
Allows mod menus (dangerous)
# ────────────────────────────────────────────────────────────── # My Premium FiveM Server — server.cfg # Generated by xFiveM Shop Tools — https://xfivem.shop/tools # ────────────────────────────────────────────────────────────── # ── Endpoint & Network Settings ─────────────────────────────── endpoint_add_tcp "0.0.0.0:30120" endpoint_add_udp "0.0.0.0:30120" sv_maxclients 48 set sv_enforceGameBuild 3095 # DLC Build # ── Server Identity ─────────────────────────────────────────── sv_projectName "My Premium FiveM Server" sv_projectDesc "An advanced roleplay server with custom scripts" sets tags "roleplay, custom, cars, police, ems, economy" sets locale "en-US" load_server_icon myLogo.png # Optional: 96x96 PNG logo # sets banner_detail "URL" # sets banner_connecting "URL" # ── Authentication & Keys ───────────────────────────────────── sv_licenseKey "YOUR_LICENSE_KEY_HERE" # set steam_webApiKey "YOUR_STEAM_KEY" # ── Database Connection ─────────────────────────────────────── set mysql_connection_string "mysql://root:password@localhost/fivem?charset=utf8mb4" set mysql_slow_query_warning 150 # ── Performance & Security ──────────────────────────────────── set onesync infinity sv_scriptHookAllowed 0 # Allow external menus # txAdmin Settings setr txEnableMenu true # ── Voice Chat (PMA-Voice) ──────────────────────────────────── setr voice_useNativeAudio true setr voice_useSendingRangeOnly true setr voice_defaultCycle "GRAVE" setr voice_defaultVolume 0.3 setr voice_enableRadioAnim 1 setr voice_syncData 1 # ── Game Settings ───────────────────────────────────────────── sets gametype "Roleplay" sets mapname "San Andreas" # ── Permissions (ACE) ───────────────────────────────────────── add_ace group.admin command allow add_ace group.admin command.quit allow add_principal identifier.fivem:1 group.admin # Replace with your ID add_ace qbcore.god command allow add_principal identifier.fivem:1 qbcore.god # ── Resources ───────────────────────────────────────────────── # Core FiveM ensure mapmanager ensure chat ensure spawnmanager ensure sessionmanager ensure hardcap ensure baseevents ensure pma-voice ensure oxmysql # QBCore Framework ensure qb-core ensure qb-multicharacter ensure qb-spawn ensure qb-hud ensure qb-phone ensure qb-inventory # Add your custom resources below # ensure my-resource
Fill in the name of your server, the player count you plan to support, and your FiveM License Key. If you are running locally, `0.0.0.0` as the bind IP is perfectly fine.
Select QBCore, ESX, or Standalone to pre-fill the right framework resources. Turn on the Database switch to generate your `oxmysql` connection string, and select your preferred game build (DLC).
Check the output box on the right. You'll see professional formatting, comments, and structure. Click Download and place this `server.cfg` right next to your server's run script!
Need premium scripts for your new server?
Explore our marketplace for exclusive QBCore, ESX and standalone resources.