How to set up a FiveM server for GTA 5 RP
With a FiveM server you can run your own GTA 5 RP server: Cfx.re's multiplayer platform for GTA V, with your own scripts, jobs and rules on top. This guide takes you from the order to the first players on your GTA V roleplay server at ClanNode: the right setup, a roleplay recipe in txAdmin, the connection and your first scripts.
fivem.net offers two clients: FiveM, which requires GTA V Legacy, and FiveM for GTAV Enhanced, in early access, which requires GTA V Enhanced. ClanNode has a matching setup for each, and players of one cannot join a server of the other. Pick the setup that matches the GTA V edition your players own.
What you need
- A PC copy of GTA V, Legacy or Enhanced, for you and every player. FiveM requires a legitimate, fully updated installation.
- A Cfx.re account and a free server key, which you create in the Cfx.re Portal at portal.cfx.re.
- A ClanNode FiveM server: FiveM for GTA V Legacy or FiveM for GTA V Enhanced, in Poland or France.
- Friends who play on PC. FiveM is a Windows client, so PlayStation and Xbox players cannot join.
Create the server
- Order your server. Choose the setup, a server name and Poland or France, then paste your Cfx.re server key at checkout. ClanNode asks for the key only there.
- Wait for the first start. ClanNode installs FiveM with txAdmin, creates the server's own MariaDB database and starts the server.
- Open txAdmin from the game panel. On its setup page, check that a PIN is filled in and click Link Account.
- Link your Cfx.re account: log in to it in the new tab and click Yes, Allow.
- Set your txAdmin admin password. It opens the admin page of your server, so use a password you use nowhere else.
- Type a name for the server, then choose a recipe under Popular Recipes. A recipe is a ready-made server template:
- CFX Default FiveM: the template the FiveM documentation suggests to start with.
- ESX: a roleplay framework.
- QBCore: a roleplay framework.
- Qbox: a roleplay framework.
- Start the server. In the Recipe Deployer, check the recipe, paste your server key if it asks for it, click Run Recipe and then Save & Run Server.
Connect and invite players
- Once the server runs with your key, it appears in the FiveM server list and players find it by name. The FiveM documentation says this can take up to 8 minutes after launch. You set the name and description shown there in the Cfx.re Portal, not in server.cfg.
- To connect directly, players press F8 in FiveM to open the console and type connect with your address and port:
connect IP:port
- Your server's IP address and port are shown in the game panel. The connect command also accepts a cfx.re/join link in place of the address.
- A FiveM server takes up to 48 players by default. More slots need a Cfx.re Element Club subscription, Argentum or higher, on the account that owns the server key.
Add scripts and resources
In FiveM, every script, vehicle pack or map is a resource: a set of client scripts, server scripts and streaming assets. The server loads resources from the resources folder, and each one needs an fxmanifest.lua file.
- Stop the server and make a backup in the game panel.
- Upload the resource folder into resources in the Files tab of the game panel. A folder in square brackets, such as [my-scripts], is a category that can hold several resources.
- Add a line to server.cfg so the resource starts with the server, then start the server and check the console for errors.
ensure my-resource
Keep the server build current. Cfx.re publishes server builds called artifacts, and its documentation points to the current recommended build. On FiveM for GTA V Enhanced, use Reinstall in the game panel after a Cfx.re update; your txAdmin data, resources and server.cfg are kept.
Paid scripts sold as escrowed resources through Tebex start only on a server whose owner bought them. FiveM for GTA V Enhanced does not load them yet.
Scripts, not player slots, decide how much memory and CPU your server needs. A full roleplay framework with many scripts, vehicles and maps uses more than the default resources, and the FiveM documentation notes that every added resource makes the startup longer.
How much does a FiveM server cost?
The cost depends on the memory and CPU your scripts need. The plan table on the FiveM page shows Party, Clan and Guild and how many players each one is sized for. Anvil lets you choose memory, CPU and storage yourself, for a large framework or many custom vehicles and maps.
Every plan starts with a 24 hour free trial when you pay by card, so you can deploy your recipe and test your scripts first.
Do I need a VPS for a FiveM server?
No. A managed FiveM server at ClanNode comes with txAdmin, its own database, backups and DDoS protection, and you never install, update or secure an operating system. You still control every file, resource and setting through txAdmin and the game panel, with its console, files, database and backups.
A VPS only makes sense if you want to run other software beside FiveM and look after the whole machine yourself.
ClanNode is not affiliated with or endorsed by Rockstar Games, Take-Two Interactive or Cfx.re. FiveM, Grand Theft Auto and GTA are trademarks of their owners.