BalkanRoleplay
FiveM server.cfg generator
Generate a starting server.cfg for a vanilla FiveM server: port, slots, OneSync, admin ACE, privacy and your resources, based on the official Cfx.re example.
Fill in what you know and press Generate. The output follows the vanilla example on docs.fivem.net. Your licence key is never asked for here: paste it into the file on your own server.
Your server.cfg
# Generated by balkanroleplay.com. Review every line before use.
# https://docs.fivem.net/docs/server-manual/setting-up-a-server-vanilla/
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode
ensure hardcap
ensure rconlog
sv_scriptHookAllowed 0
sv_endpointPrivacy true
add_ace group.admin command allow
add_ace group.admin command.quit deny
set onesync on
sv_maxclients 48
# Licence key from https://portal.cfx.re (paste it only on your server)
sv_licenseKey changeme
Before you start the server
- Server name, description and icon are set in the Cfx Portal: Cfx.re marks sv_hostname, sv_projectName and load_server_icon as deprecated.
- Slots from 32 need OneSync and more than 64 need "onesync on"; the file always enables it, as the official example does.
- Framework recipes (ESX Legacy, Qbox) are deployed with txAdmin and write their own server.cfg. Use this generator for a vanilla server or as a reference.
- Resource order matters: dependencies (for example oxmysql, ox_lib) must be ensured before the resources that use them.
server.cfg basics: slots, OneSync, ports and resource commands