Skip to main content
This guide walks you through starting your Mythic Framework server for the first time, verifying everything works correctly, and creating your first character.

Pre-Start Checklist

Before starting, ensure you’ve completed:
1

Prerequisites installed

MongoDB and MySQL running ✓
2

Server files extracted

Mythic Framework in server directory ✓
3

Databases created

auth and fivem MongoDB databases exist ✓
4

server.cfg configured

License keys, database connections, and admin permissions set ✓
If any of these aren’t complete, go back and finish them first. Starting with incomplete configuration will cause errors.

Starting the Server

Windows

Simply run FXServer.exe in your server directory by double-clicking it. FXServer will automatically create a startup batch file if needed and launch the server with the correct configuration.
txAdmin will start automatically and provide you with a web URL (usually http://localhost:40120) where you can manage your server.

Linux

# Navigate to server directory
cd ~/fivem-server

# Start server
./run.sh
For production servers, you can optionally run as a systemd service:
# Create service file
sudo nano /etc/systemd/system/mythic-fivem.service
[Unit]
Description=Mythic Framework FiveM Server
After=network.target mongodb.service mysql.service

[Service]
Type=simple
User=your_username
WorkingDirectory=/home/your_username/fivem-server
ExecStart=/home/your_username/fivem-server/FXServer +exec server.cfg
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
# Reload and start service
sudo systemctl daemon-reload
sudo systemctl enable mythic-fivem
sudo systemctl start mythic-fivem

# View logs
sudo journalctl -u mythic-fivem -f

What to Expect

Console Output

When starting, you’ll see:
1

FiveM Banner

========================================
  FiveM Server (Build 6683)
========================================
2

License Validation

[Info] Checking license key...
[Info] License key is valid
3

Resource Scanning

[Info] Scanning resources in resources/...
[Info] Found 75 resources
4

Database Connections

[mythic-base] Connecting to MongoDB...
[mythic-base] MongoDB connected successfully
[oxmysql] Connecting to MySQL...
[oxmysql] MySQL connection established
5

Resource Loading

[Info] Starting resource mythic-base
[mythic-base] Component system initialized
[mythic-base] Registering core components...
[Info] Starting resource mythic-characters
[Info] Starting resource mythic-inventory
... (60+ resources)
6

Server Ready

[Info] Server started
[Info] Server listening on 0.0.0.0:30120
[Info] Server is ready!
First start may take 2-5 minutes as databases initialize and resources compile. Subsequent starts will be faster.

Expected Initialization

On first start, Mythic Framework will:
  1. Create database collections (MongoDB)
    • characters collection
    • inventory collection
    • users collection
    • logs collection
    • And more…
  2. Create database tables (MySQL)
    • Various persistent data tables
    • Initialized with defaults
  3. Initialize default data
    • Default items for inventory
    • Default jobs
    • Default locations
    • System configurations
  4. Create indexes for performance
All of this happens automatically - you don’t need to do anything!

Verification

Check Console for Errors

Watch the console for any red error messages:
If you see [Info] Server is ready! with no red errors, your server started successfully!
[Error] Failed to connect to MongoDB
[Error] MySQL connection failed
Solutions:
[Error] Invalid license key
[Error] License key is for different IP
Solutions:
  • Verify license key is correct
  • Check IP matches the one registered
  • Generate new key if IP changed
[Error] Failed to start resource mythic-XXXXX
[Error] Dependency YYYYY not found
Solutions:
  • Check resources.cfg load order
  • Verify all resource folders exist
  • Ensure mythic-base loads first
The server console will automatically display any errors or warnings. If resources fail to start or databases can’t connect, error messages will be shown in red. For troubleshooting, see the Troubleshooting Guide.

Connecting to Your Server

From Same Machine (Localhost)

1

Open FiveM Client

Launch FiveM on the same computer as the server
2

Open Console

Press F8 to open the console
3

Connect

connect localhost:30120
(Use your port if different from 30120)

From Different Machine (LAN/Internet)

1

Ensure Firewall Port is Open

Port 30120 must be open in Windows Firewall or UFW (Linux)
2

Connect from FiveM

Press F8 in FiveM and connect using your server’s IP:
connect YOUR_SERVER_IP:30120

First Login Experience

Loading Screen

When connecting, you’ll see:
  1. Mythic Framework loading screen
  2. Resource downloads (if using server-side resources)
  3. “Entering session…” message

Character Creation

On first login, you’ll be prompted to create a character:
1

Character Creator Opens

React-based character creation UI appears
2

Enter Character Details

  • First Name
  • Last Name
  • Date of Birth
  • Gender
  • Other demographic info
3

Customize Appearance

  • Face features
  • Hair style and color
  • Skin tone
  • Clothing (basic)
4

Confirm Creation

Review and create character
5

Spawn Into World

Your character spawns in Los Santos!
Character creation is powered by mythic-characters. All data is saved to MongoDB automatically.

In-Game Verification

Once spawned, verify systems are working:
  • Health bar visible
  • Armor bar visible
  • Status effects (hunger, thirst) visible
  • Vehicle info shows when in vehicle
Press I (or configured keybind):
  • Inventory UI opens
  • Drag and drop works
  • You can see starting items
Press T to open chat:
  • Chat input opens
  • Type a message
  • Press Enter to send
Press P (or configured keybind):
  • Phone UI opens
  • Apps are visible
  • Can navigate phone
If you added yourself as admin:
/admin
  • Admin menu should open
  • Shows admin tools and options

Post-Start Configuration

Adjust Server Settings

Now that the server is running, you can fine-tune settings:
  1. Player count - Adjust based on performance
  2. Resource configurations - Each resource has config files
  3. Job settings - Configure available jobs
  4. Economy - Adjust starting money, prices
See Configuration Guides for details.

Add More Admins

Add other admin team members:
  1. Have them connect to server
  2. Run status in console to see their identifiers
  3. Add to server.cfg:
    add_principal identifier.discord:THEIR_DISCORD_ID group.admin
    
  4. Restart server

Configure Discord Webhooks

If you haven’t yet, set up Discord webhooks to monitor:
  • Player connections
  • Admin actions
  • Errors and warnings
  • Kill logs
See Discord Webhooks Configuration.

Performance Monitoring

Monitor your server’s performance:
Press F8 and type:
# Show resource usage
resmon

# Shows:
# - CPU usage per resource
# - Memory usage
# - Network traffic

Resource Usage Expectations

Typical resource usage for Mythic Framework:
ResourceCPU (Idle)CPU (48 players)RAM
mythic-base0.5-1%2-3%50MB
mythic-inventory0.1%1-2%30MB
mythic-hud0.3%0.5%20MB
mythic-phone0.1%0.3%15MB
All Mythic resources3-5%10-15%500MB
These are approximations. Actual usage varies based on player activity and server hardware.

Common First-Start Issues

Causes:
  • Invalid license key
  • Database connection failure
  • Port already in use
Solutions:
Solutions:
  • Verify server console shows “Server is ready”
  • Check firewall isn’t blocking port
  • Try connect 127.0.0.1:30120 if on same PC
  • Verify port forwarding if remote
Solutions:
  • Check resources.cfg load order
  • Ensure mythic-base loads before other Mythic resources
  • Verify all resource folders exist in resources/[mythic]/
Solutions:
  • Check mythic-characters resource is started
  • F8 console - check for errors
  • Verify database connection
  • Try: /logout then reconnect
Solutions:
  • Check mythic-hud, mythic-inventory are started
  • F8 console - check for JavaScript errors
  • Clear FiveM cache: Delete %localappdata%\FiveM\FiveM.app\cache
  • Restart FiveM client

Server Maintenance Commands

Useful console commands:
# Gracefully restart server (gives players warning)
quit

# Restart a specific resource
restart mythic-inventory

# Reload server.cfg changes
refresh

# Kick a player
clientkick [player_id] "Reason"

# Show server info
sysinfo

# Show network stats
net_stats

Backup Your Database

Now that your server is running, set up automatic backups:
# Manual backup
mongodump --db fivem --out /path/to/backup/$(date +%Y%m%d)
mongodump --db auth --out /path/to/backup/$(date +%Y%m%d)

# Automated daily backup (cron - Linux)
0 4 * * * mongodump --db fivem --out /backups/$(date +\%Y\%m\%d)
Critical: Set up automated backups before going live with players. Database corruption or errors can result in data loss.

Next Steps

Your server is running! Now:
Recommended: Run your server in development mode (set sv_environment dev) for a few days to identify and fix any issues before opening to public.

Congratulations! 🎉

Your Mythic Framework server is now running! Take time to explore the features, customize settings, and familiarize yourself with the systems before inviting players.
Join our Discord community to get help, share your server, and stay updated on framework developments!