CyberNex
CyberNex
services
Back to Tutorials
FiveM12 min readJune 19, 2026

How to Create a FiveM Server — Step-by-Step Guide

Getting Your FiveM License Key

Before anything else, you need a license key from the Cfx.re Portal. Sign in with your FiveM account, navigate to 'Server Console' > 'Generate Key'. Note: you must have played FiveM for at least 14 days before you can create a server key. The key is free and doesn't expire. Keep it private — anyone with your key can impersonate your server on the server list.

Choosing the Right Hosting Plan

32-slot roleplay server with 20-30 resources: FiveM 4 GB plan. 64-slot RP server with 40-60 resources: 8 GB plan. 100+ slot communities with 70+ resources: 16 GB plan. FiveM uses RAM for all loaded resources + player data — budget 50-100 MB per resource and 10-20 MB per player. Our FiveM plans come with txAdmin pre-installed, MySQL database, and game-aware DDoS protection optimized for FiveM traffic patterns.

First-Time txAdmin Setup

After ordering, your server deploys in under 60 seconds. Open the txAdmin URL from your control panel. The setup wizard guides you through: naming your server, setting the admin password, choosing a recipe (CFX Default for bare setup, or QBCore/ESX from the list). Select your framework — ESX for maximum resource compatibility, QBCore for better performance. txAdmin downloads and configures everything in 3-5 minutes.

Essential First Resources

Start with these resources in order: 1) Your framework core (ESX/QBCore), 2) Database connector (OX MySQL), 3) Inventory system (OX Inventory or QB-Inventory), 4) Character creator (QB-Clothing or esx_skin), 5) Spawn selector, 6) HUD, 7) Phone system, 8) Garage/vehicle system. Install ONE at a time. After each install, fully test it before adding the next. Dumping 50 resources at once makes debugging impossible.

Database Configuration

Your control panel provides MySQL credentials. In server.cfg, set: 'set mysql_connection_string "mysql://user:password@localhost/database?charset=utf8mb4"'. For OX MySQL (recommended): 'set oxmysql_connection_string "mysql://..."'. If your database is on the same machine, use 'localhost'. If using a remote database, use the IP. Verify the connection in txAdmin console — you should see '[oxmysql] Database connection established'.

Launching Your Server

Before going public: test with 3-5 staff members. Verify character creation works, jobs are functional, vehicles spawn and save, inventory persists, economy works, and admin commands are properly restricted. Post your server on the Cfx.re server list (it shows to millions of FiveM players). Share in FiveM Discord communities. Have staff online during the first 48 hours — your initial players will find bugs you missed. Stay active in chat — a present owner builds community faster than any script.

Related Hosting Services
// Frequently Asked Questions

FAQ

Was this guide helpful?

Join our Discord for more guides and direct help from our engineering team.

// Initialize Deployment

Deploy your server in 60 seconds

Get your Minecraft, FiveM, Rust, or CS2 server running on our global infrastructure before your coffee gets cold. Starting at € 3.50/month with instant provisioning, 17 Tbit DDoS protection, and 24/7 engineer support.

How to Create a FiveM Server — Step-by-Step Guide | CyberNex | CyberNex