Here's how to connect to your FiveM server and adjust the most important settings.
Connecting
- Open the server page in the client area and click Start.
- Wait until the status shows “running”. You can follow the progress in the Console tab.
- Copy the address (IP:Port) at the top of the server page.
- In FiveM, open the console with F8 and enter
connect IP:Port(address from the server page).
Important settings
In the Startup variables tab:
- Server name (
SERVER_HOSTNAME) – name in the server browser. - License key (
FIVEM_LICENSE) – the server won't start without a valid key. - FiveM version (
FIVEM_VERSION) – version to install; invalid entries fall back to the recommended one. - Steam Web API key (
STEAM_WEBAPIKEY) – your Steam Web API key ornone. - txAdmin (
TXADMIN_ENABLE) –1enables the txAdmin management interface.
More settings (e.g. resources) are in server.cfg in the Files tab. Changes in the Startup variables tab take effect on the next restart.
Switching on txAdmin
txAdmin is the browser-based management interface for FiveM:
- Set the Enable txAdmin startup variable to
1and restart the server. - Open
http://IP:txAdmin-portin your browser (you see the port in the Ports tab). - On first access, txAdmin asks for a PIN. It is shown in the Console.
- Create your admin account and follow the setup wizard.
Adding resources
Upload resources (scripts, vehicles, maps) to the resources folder and add them to server.cfg with ensure resourcename. The order matters: dependencies must come before the resources that need them.
More than 48 players
For more than 48 players, FiveM needs OneSync. Add set onesync on to server.cfg and increase Max players.
How much memory?
The base configuration is enough for a small server. The more players play at the same time and the more resources run, the more memory the server needs – roleplay servers with ESX or QBCore usually need considerably more.
Good to know
- You enter the license key when ordering; it can be changed later under Startup variables. How to get one is explained in the article “FiveM: enter your license key”.
- You'll find additional ports (e.g. for txAdmin) in the Ports tab.