FiveM/RedM VPS Setup
For users who want complete control over their server, you can run FiveM or RedM on a Vexium VPS. This guide covers the manual setup process.Game Server vs VPS: Our managed FiveM/RedM game servers come pre-configured with txAdmin ready to go. This VPS guide is for advanced users who want full control over their environment.
Prerequisites
Before starting, you’ll need:- A Vexium VPS with Windows Server
- A Cfx.re account
- Basic knowledge of Windows Server administration
Step 1: Prepare Your VPS
Install Database Server
Most users prefer XAMPP for easy database management:- Download XAMPP from apachefriends.org
- Run the installer (you only need MySQL and phpMyAdmin components)
- Open XAMPP Control Panel
- Click Start next to MySQL
- Click Admin next to MySQL to open phpMyAdmin
- XAMPP (Recommended)
- MariaDB + HeidiSQL
Why XAMPP?
- Easy to use control panel
- Includes phpMyAdmin for visual database management
- Start/stop MySQL with one click
- Great for beginners
- Open phpMyAdmin (click Admin in XAMPP)
- Click New in the left sidebar
- Enter a database name (e.g.,
fivem_server) - Click Create
Database Connection String
Most FiveM resources use this format in their config:The default XAMPP MySQL has no password. For production servers, you should set a password and update your connection strings accordingly.
Configure Firewall / Port Forwarding
Open the following ports in Windows Firewall:| Port | Protocol | Purpose |
|---|---|---|
| 30120 | TCP/UDP | Game Server |
| 40120 | TCP | txAdmin Web Panel |
- Open Windows Defender Firewall with Advanced Security
- Click Inbound Rules → New Rule
- Select Port → Next
- Select TCP and enter the port number → Next
- Select Allow the connection → Next
- Check all profiles → Next
- Name the rule (e.g., “FiveM Game Port”) → Finish
- Repeat for UDP on port 30120
Step 2: Create Server Folder Structure
Organize your server files for easy management:- Create a main folder on your Desktop (e.g.,
FiveM-Serveror your city name) - Inside that folder, create a
serversubfolder
Step 3: Download Server Artifacts
- Go to FiveM Artifacts (or RedM Artifacts for RedM)
- Choose your artifact version carefully:
- Download the artifact
.zipfile - Extract all files into your
serverfolder
Step 4: Generate a Server Key
- Go to Cfx.re Portal
- Sign in with your Cfx.re account
- Navigate to Server Keys
- Click Create New Key
- Fill in your server details
- Copy the generated license key
Step 5: Initial Server Setup
- Navigate to your
serverfolder - Find and run
FXServer.exe - This will launch txAdmin and link it to your server
txAdmin First-Time Setup
- Create Backup Password - Set any password (this is for txAdmin recovery)
- Confirm Password
- Link Cfx.re Account - Follow the prompts to authenticate
- Follow the Setup Wizard to configure your server:
- Server name
- Server template (or custom)
- Data location
Step 6: Configure Your Server
After txAdmin setup completes:- Open txAdmin in your browser (usually
http://localhost:40120orhttp://YOUR-VPS-IP:40120) - Navigate to your server’s
server.cfgfile - Edit settings to your liking:
- Server name
- Max players
- License key (if not already set)
- Resources to start
Basic server.cfg Settings
Step 7: Start Your Server
- In txAdmin, click Start Server
- Monitor the console for any errors
- Once started, your server should appear in the FiveM/RedM server browser
- Connect using:
connect YOUR-VPS-IP:30120
Recommended Resources
For a roleplay server, you’ll typically need:- Framework: ESX, QBCore, or similar
- Database resource: oxmysql or mysql-async
- Identity system: For character creation
- Economy: Banking, jobs, etc.
Resource installation and framework setup is beyond the scope of this guide. Check the documentation for your chosen framework.
Maintenance Tips
Regular Backups
- Back up your
server-datafolder regularly - Export your database using HeidiSQL
- Store backups off the VPS
Updating Artifacts
- Stop your server in txAdmin
- Download new artifacts
- Replace files in your
serverfolder (keep yourserver-data) - Start the server
Monitoring
- Use txAdmin’s built-in monitoring
- Set up Discord webhooks for alerts
- Monitor VPS resource usage
Troubleshooting
Server Won’t Start
- Check that all ports are open
- Verify your license key is valid
- Check txAdmin console for errors
Can’t Connect
- Ensure ports 30120 (TCP/UDP) are forwarded
- Check Windows Firewall settings
- Verify server is running in txAdmin
Database Connection Failed
- Verify MariaDB is running
- Check connection string credentials
- Ensure database exists
Need Help?
VPS support covers the VPS itself. For FiveM/RedM specific issues, we recommend the Cfx.re Forums and community resources.
