Help Center
Set up your FiveM server
The license key and the first steps to bring a FiveM server online.
Quick steps
- Create a free server license key on the official Cfx.re keymaster site, using your own account. Never share it.
- Enter the key in your server settings in the control panel. The server will not start without it.
- Start the server and read the console to confirm it is running.
- Edit server.cfg from the Files tab to set the server name, slot count and the resources you want loaded.
- Upload resources to the resources folder and add an ensure line for each one in server.cfg.
- 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
- My game server will not start The checks that fix most servers that stay offline or stop right after starting.
- Upload files with SFTP Connect an SFTP client to move large files to your server or bot.
- My game server is lagging How to tell whether lag comes from your server, your plan or your connection.
Still stuck? Open a support request from your dashboard, or use /support in the Hartwell Discord server.