Configure server.cfg (FiveM)

The essential lines of the server.cfg file: name, resources, tags, language.

FiveM (GTA V) Updated 1 min read

The server.cfg file holds your FiveM server’s configuration: the resources to load and the settings. If you use txAdmin, edit the configuration from txAdmin.

Settings handled by the panel

The licence, the maximum number of players and the server name come from the variables on the Startup page. Change them there rather than in the file.

Common lines

Line What it does
ensure resource_name Loads a resource at startup (the order matters).
sets tags "roleplay, english" Keywords shown in the server list.
sets locale "en-GB" Server language.
sv_scriptHookAllowed 0 Blocks ScriptHook cheat menus (recommended).
add_ace group.admin command allow Gives commands to the admin group.
add_principal identifier.fivem:123456 group.admin Adds a player to the admin group (the player’s FiveM identifier).

Never put a database password in plain text in a file you share. Stop the server before editing server.cfg, then restart.

Need a hand?

The Koinswift team answers 7 days a week, by ticket from your client area or on Discord.