FiveM Setup
Get your FiveM roleplay server online with txAdmin, framework support, and custom resources. This guide covers setup, framework installation, resource management, and performance optimization.
Choose Your Plan
Section titled “Choose Your Plan”| Plan | Best For | Player Capacity |
|---|---|---|
| Starter | Beta tests, whitelist-only servers | ~16-24 players |
| Pro | Established RP communities with moderate scripts | ~32-48 players |
| Premium | Heavy economies, custom cars/MLOs, priority support | ~64-96 players |
Quick Start
Section titled “Quick Start”-
Create your server
Go to panel.mambahost.com → Create Server → FiveM
-
Get your license key
Register at keymaster.fivem.net and generate a server key
-
Deploy and access txAdmin
After deployment, find your txAdmin URL and credentials in the console
-
Complete txAdmin setup
Follow the wizard to configure your server name, framework, and resources
-
Start the FXServer
Launch from txAdmin and verify players can connect
Framework Setup
Section titled “Framework Setup”ESX Installation
Section titled “ESX Installation”-
Download ESX from the official repository
-
Upload to
/resourcesvia SFTP -
Import the SQL schema into your database
-
Configure
server.cfg— ensure ESX loads before dependent resources -
Add database credentials to your configuration
QBCore Installation
Section titled “QBCore Installation”-
Download QBCore and its dependencies (qb-core, qb-menu, qb-target, etc.)
-
Upload to
/resourcesvia SFTP -
Run database migrations using the provided SQL files
-
Update
server.cfgwith proper load order -
Configure
qb-core/config.luawith your server settings
Resource Load Order
Section titled “Resource Load Order”Resources must load in the correct order in server.cfg:
# 1. Database (always first)ensure oxmysql
# 2. Framework coreensure es_extended# OR ensure qb-core
# 3. Framework dependenciesensure esx_menu_defaultensure esx_menu_dialog
# 4. Core systemsensure esx_identityensure esx_society
# 5. Jobs and featuresensure esx_policejobensure esx_ambulancejob
# 6. Third-party resourcesensure custom_hudensure custom_inventoryOneSync Configuration
Section titled “OneSync Configuration”Enable OneSync for more players and better synchronization:
# In server.cfgset onesync on
# For Infinity mode (64+ players)sets onesync_enableInfinity 1Database Setup
Section titled “Database Setup”All FiveM plans include MySQL access.
-
Get credentials from your panel or request via support
-
Configure connection string in
server.cfg:set mysql_connection_string "mysql://user:password@localhost/database?charset=utf8mb4" -
Import your framework’s SQL schema
-
Test the connection — check console for database errors on startup
Performance Tips
Section titled “Performance Tips”| Recommendation | Why |
|---|---|
| Remove unused resources | Each ensure adds load, even if stopped |
| Schedule restarts every 6-12 hours | Clears memory from long sessions |
| Store data in MySQL, not JSON | Reduces disk I/O |
| Use CDN for static assets | Faster client downloads |
Monitor with resmon 1 | Identifies slow resources |
Common Issues
Section titled “Common Issues”| Problem | Solution |
|---|---|
ESX is nil / QBCore is nil | Framework not loading — check load order in server.cfg |
| Resource not found | Missing dependency — install required resources |
| Database connection failed | Verify credentials and connection string format |
| Players stuck on loading | Check for missing assets, clear cache, verify CDN URLs |
| Voice not working | Ensure port 30120 UDP is open; check voice resource config |
Troubleshooting Resources
Section titled “Troubleshooting Resources”Finding Errors
Section titled “Finding Errors”- txAdmin Console — Real-time logs and errors
- Server Console — In your control panel
- citizen-server.log — In
txData/logs/folder
Reading Stack Traces
Section titled “Reading Stack Traces”SCRIPT ERROR: @es_extended/server/main.lua:142: attempt to index a nil valueThis tells you:
- Resource:
es_extended - File:
server/main.lua - Line: 142
- Error: Something expected data but got nothing
Helpful Links
Section titled “Helpful Links”Need Help?
Section titled “Need Help?”- Support: support@mambahost.com
- Discord: Join our server