FiveM Server Hosting
This guide covers setting up and managing FiveM hosting products in Mamba Panel for your customers.
Overview
Section titled “Overview”FiveM is a popular multiplayer modification for GTA V, commonly used for roleplay servers. Mamba Panel provides:
- Automated server provisioning via Pterodactyl
- txAdmin integration for server management
- Support for ESX, QBCore, and custom frameworks
- MySQL database provisioning
Creating FiveM Products
Section titled “Creating FiveM Products”Plan Configuration
Section titled “Plan Configuration”Navigate to Products → Game Servers → Create Plan and configure:
| Setting | Starter | Pro | Premium |
|---|---|---|---|
| RAM | 3 GB | 5 GB | 8 GB |
| CPU | 1 vCPU | 1.5 vCPU | 2 vCPU |
| Storage | 20 GB | 40 GB | 80 GB |
| Player Estimate | 16-24 | 32-48 | 64-96 |
| MySQL | Optional | Included | Included |
| Suggested Price | $8.49/mo | $14.99/mo | $24.99/mo |
Pterodactyl Egg Setup
Section titled “Pterodactyl Egg Setup”Use the FiveM Pterodactyl egg with txAdmin support:
- Configure egg in Settings → Integrations → Pterodactyl → Eggs
- Map FiveM products to the appropriate egg
- Configure default startup parameters
- Set txAdmin as default server management interface
Plan Sizing Guidelines
Section titled “Plan Sizing Guidelines”Starter (16-24 players):
- Small communities, beta testing
- Light scripts, minimal MLOs
- Development/testing environments
Pro (32-48 players):
- Established RP communities
- Moderate script load
- Standard framework (ESX/QBCore)
Premium (64-96+ players):
- Large communities
- Heavy economies, custom cars/MLOs
- OneSync Infinity support
Customer Onboarding
Section titled “Customer Onboarding”Prerequisites
Section titled “Prerequisites”Customers need before setup:
- FiveM license key from https://keymaster.fivem.net
- Cfx.re account linked to license
- Framework choice (ESX, QBCore, vRP, custom)
- Resource pack (scripts, vehicles, MLOs)
Provisioning Flow
Section titled “Provisioning Flow”- Customer purchases FiveM hosting plan
- Mamba Panel provisions server via Pterodactyl
- Customer receives:
- txAdmin URL and initial credentials
- SFTP access for file uploads
- MySQL credentials (if included)
- Server connection info
txAdmin First-Time Setup
Section titled “txAdmin First-Time Setup”Guide customers through:
- Access txAdmin — Open URL from portal, log in
- Run setup wizard — Configure server identity
- Enter license key — From Cfx.re Keymaster
- Select template:
- ESX Legacy
- QBCore
- Custom/Blank
- Configure project path — Usually
/home/container/server-data - Set owner identifiers — Discord ID, license, Steam
- Start FXServer — Monitor console for issues
Framework Setup
Section titled “Framework Setup”ESX Installation
Section titled “ESX Installation”- Download ESX base files
- Upload to
/resources/[esx] - Import SQL schema to MySQL
- Configure
server.cfg:
ensure es_extendedensure esx_menu_defaultensure esx_menu_dialogensure esx_menu_list- Update database connection in
es_extended/config.lua
QBCore Installation
Section titled “QBCore Installation”- Download QBCore framework
- Upload to
/resources/[qb] - Run database migrations
- Configure
server.cfg:
ensure qb-coreensure qb-multicharacterensure qb-spawnensure qb-inventory- Set
mysql_connection_stringinserver.cfg
Database Configuration
Section titled “Database Configuration”For MySQL connection string:
set mysql_connection_string "mysql://user:pass@host:3306/database?charset=utf8mb4"Configure oxmysql or mysql-async as the database driver.
Resource Management
Section titled “Resource Management”Resource Load Order
Section titled “Resource Load Order”Recommend this order in server.cfg:
# 1. Core/Frameworkensure es_extended OR ensure qb-core
# 2. Dependenciesensure ox_libensure PolyZone
# 3. Job scriptsensure esx_jobs
# 4. Vehicles/MLOsensure custom_cars
# 5. UI/HUDensure custom_hudInstalling Resources
Section titled “Installing Resources”- Upload via SFTP to
/resources/[category]/ - Add
ensure [resource_name]toserver.cfg - Restart server or use
/refresh+/start [resource] - Monitor console for errors
OneSync Configuration
Section titled “OneSync Configuration”For larger servers, enable OneSync:
In server.cfg:
set onesync onset onesync_enableInfinity 1Adjust player slots in txAdmin settings.
Performance Optimization
Section titled “Performance Optimization”Server Configuration
Section titled “Server Configuration”# server.cfg optimizationssv_maxClients 64set sv_enforceGameBuild 2699sv_scriptHookAllowed 0sets sv_projectName "Server Name"Resource Monitoring
Section titled “Resource Monitoring”Use txAdmin and resmon for performance:
- Monitor tick time (should be < 16ms)
- Track resource CPU usage
- Identify heavy scripts
Common Optimizations
Section titled “Common Optimizations”- Remove unused resources — Don’t just stop, delete ensure lines
- Optimize database queries — Index frequently queried columns
- Reduce sync frequency — For non-critical data
- Use streaming — For custom vehicles and MLOs
- Cache data — Reduce repeated database calls
Backups & Maintenance
Section titled “Backups & Maintenance”Automated Backups
Section titled “Automated Backups”Configure schedules for:
- Daily server files backup
- Database dumps (
mysqldump) - Pre-update snapshots
Maintenance Schedule
Section titled “Maintenance Schedule”Recommend to customers:
- Schedule 4-6 hour restarts to clear memory
- Weekly maintenance windows for updates
- Pre-announce downtime to players
Disaster Recovery
Section titled “Disaster Recovery”- Keep offline backups of:
server-datadirectory- MySQL database exports
- Resource configurations
- Document custom configurations
- Test restore procedures periodically
Common Customer Issues
Section titled “Common Customer Issues”| Issue | Cause | Resolution |
|---|---|---|
| Can’t connect | Wrong IP, server not started | Check portal status, verify IP:port |
| Stuck loading | Resource error, asset issues | Check txAdmin console, clear cache |
| txAdmin red, panel green | FXServer crashed | Restart via txAdmin, check logs |
| Database errors | Wrong credentials, connection limit | Verify mysql_connection_string |
| Missing vehicles/MLOs | Not streaming correctly | Check manifest files, stream folder |
| Voice not working | Wrong pma-voice config | Verify dependencies and ports |
Scaling Guidance
Section titled “Scaling Guidance”When to Upgrade
Section titled “When to Upgrade”Recommend upgrades when:
- Average CPU > 80%
- RAM usage approaching limit
- Player count hitting cap
- Restart times > 2 minutes
Multi-Server Setup
Section titled “Multi-Server Setup”For large communities needing multiple servers:
| Server | Purpose |
|---|---|
| Main | Primary RP server |
| Test | Development/staging |
| Events | Special events |
| Backup | Hot standby |
Share database across servers for unified economy/characters.
Compliance Notes
Section titled “Compliance Notes”Remind customers about:
- Cfx.re monetization guidelines
- Tebex compliance for donations
- Asset licensing (vehicles, MLOs)
- Copyright considerations
Support Resources
Section titled “Support Resources”For Your Staff
Section titled “For Your Staff”- Understand txAdmin basics
- Know common FiveM errors
- Recognize resource conflicts
For Customers
Section titled “For Customers”Provide links to:
- General Troubleshooting
- FiveM forums and documentation
- Framework documentation (ESX/QBCore wikis)