Help Center

Set up your FiveM server

The license key and the first steps to bring a FiveM server online.

Quick steps

  1. Create a free server license key on the official Cfx.re keymaster site, using your own account. Never share it.
  2. Enter the key in your server settings in the control panel. The server will not start without it.
  3. Start the server and read the console to confirm it is running.
  4. Edit server.cfg from the Files tab to set the server name, slot count and the resources you want loaded.
  5. Upload resources to the resources folder and add an ensure line for each one in server.cfg.
  6. Add one resource at a time and restart. A broken resource is the usual reason a server fails to start.

Getting a license key

Every FiveM server needs a license key from Cfx.re, created with your own Cfx.re account. Keys are free. Keep it private: anyone who has it can run a server under your account.

Important server.cfg settings

  • sv_hostname: the name shown in the server list.
  • sv_maxclients: the slot limit.
  • ensure <resource>: loads a resource on start. Each resource needs its own line.
  • sets tags and sets locale: help players find your server.

Frameworks and databases

Roleplay frameworks such as ESX and QBCore usually need a MySQL or MariaDB database. Use the connection details from your control panel where your plan includes a database, and follow the framework's own installation guide.

Keeping it stable

  • Add resources one at a time and read the console after each restart.
  • Keep the server artifacts up to date, and back up before updating.
  • Watch memory use as you add scripts, vehicles and maps.

Never share your password, a bot token, a private key or card details with anyone, including Hartwell staff.

Related articles

Still stuck? Open a support request from your dashboard, or use /support in the Hartwell Discord server.

← All help articles