Game servers
How to make a FiveM server for GTA V, step by step
Updated on 4 min readThe NeoHost team
What you need before you start
A Cfx.re account and a license key for the server. The key is free and you generate it on portal.cfx.re. It is tied to your account, not to the server, so you keep it if you move the server. A server that runs around the clock. On your computer at home, the server goes down when you switch the computer off, and the IP address can change from one day to the next. A framework, if you run roleplay: ESX and QBCore are the most used. Both keep players, jobs and inventories in a MySQL database. FiveM installed on your computer, so you can join the server and test it.
Game plan or VPS
A game plan with NeoGame™ Panel, from €4.49 to €13.99 a month. You start, stop and restart from the browser, you see the live console and the files, and a MySQL database with phpMyAdmin is included. This is the option if all you want is the game server. A Ruby VPS with GameReady™ OS, from €15.90 a month. You connect over SSH, type fivem installand the installer sets up the recommended server build and txAdmin. You have root on the machine, so you can run other services next to the server.
Which plan to pick
Street: 2 vCPU, 4 GB RAM, 40 GB NVMe, €4.49 a month. Heist: 2 vCPU, 6 GB RAM, 75 GB NVMe, €9.49 a month. Empire: 4 vCPU, 8 GB RAM, 100 GB NVMe, €13.99 a month.
The steps, on a game plan
Order the plan from the FiveM page. The server installs itself in under a minute after payment, and the panel login details arrive by email. Open server.cfgin the panel’s file manager and put the license key insv_licenseKey. In the same file you give the server a name, withsv_hostname.Create the framework’s tables in the database: in phpMyAdmin, import the SQL file that comes with ESX or QBCore. Put the database connection details in server.cfg, for exampleset mysql_connection_stringfor oxmysql.Upload the resources over SFTP to the resourcesfolder and start each one with anensureline inserver.cfg. There is no whitelist, and no resource is blocked.Restart from the panel and watch the console: if a resource does not start, the error shows up there. Join the server: in FiveM, press F8 and type connectfollowed by the server address. The default FiveM port is 30120.
The steps, on a VPS with GameReady™ OS
Order a Ruby VPS with the GameReady™ OS image from the configurator. The FiveM installer needs at least 2 vCPU, 4 GB RAM and 10 GB of disk, and every Ruby plan has that. Connect to the VPS over SSH with the details from the activation email. If you have not done this before, read the guide to connecting over SSH. Type fivem install. The installer sets up the recommended server build and txAdmin, then shows you the PIN for the first login.Open txAdmin in your browser, log in with the PIN and follow its setup: the license key, the framework (ESX, QBCore or an empty server) and the database. Connect from FiveM, with F8 and connectfollowed by the server address.
Where it usually goes wrong
A missing or wrong license key: the server does not start or does not show up in the FiveM list. Check sv_licenseKeyinserver.cfg.A resource that is uploaded but not started: without its ensureline inserver.cfgit sits in the folder and does nothing.A framework started without its tables: if you have not imported the SQL into the database, the console fills with errors as soon as the first player joins. The order of resources: a resource that depends on another has to start after it, so the order of the ensurelines matters.
