Intermediate 12 min

Understand the server.cfg file

Server Tags, slots, license key, security resources and essential network settings.

#server.cfg#Configuration#Network

Ready to start your service? Check offers and order online.

View offers and order

Objective

Understanding and Editing server.cfg, the central configuration file of your FiveM server.

server.cfg
Essential parameters FiveM

Location

Via the panel file manager: server root or folder specified by TXAdmin.

Essential parameters

sv_hostname "Mon serveur RP" sv_maxclients 48 sv_licenseKey "votre_cle_keymaster" 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 hardcap ensure votre_framework
  1. Licence

    Key from keymaster.fivem.net, mandatory for players to connect.

  2. Resources

    Each script must have a line ensure nom_ressource after installation in resources/.

  3. Restarting

    Restart the complete server after modification (or refresh + ensure in dev).

Related guides