Setup & Installation
Complete guide to setting up and installing QBCore framework.
This guide covers the complete installation and initial setup of QBCore framework for your FiveM server.
Prerequisites
Before installing QBCore, ensure you have:
- FiveM Server: A properly configured FiveM server
- MySQL Database: MySQL 8.0+ or MariaDB 10.6+
- Git: For cloning repositories
- Basic Command Line Knowledge: Comfort with terminal commands
Installation Methods
Method 1: Fresh Installation (Recommended)
1. Database Setup
Create a new MySQL database for your server:
2. Server Structure
Create the proper directory structure:
3. Core Framework Installation
4. Database Dependencies
Install required database resources:
5. Database Import
Import the QBCore database structure:
Method 2: QBCore Template (Alternative)
For a quicker start, use the QBCore server template:
Configuration
1. Database Connection
Configure your database connection in qb-core/shared/config.lua
:
2. Server.cfg Configuration
Add QBCore resources to your server.cfg
:
3. Resource Loading Order
Proper loading order is crucial for QBCore:
Verification & Testing
1. Server Startup
Start your server and verify QBCore loads properly:
2. Database Verification
Check that database tables were created:
3. In-Game Testing
- Connect to Server: Join your server
- Character Creation: Test the multicharacter system
- Basic Functions: Try commands like
/me
,/job
,/inventory
- Job System: Test changing jobs with
/setjob [job] [grade]
Common Installation Issues
Database Connection Errors
Error: Failed to execute query: Access denied
Solution:
Resource Loading Errors
Error: Resource [qb-core] couldn't be started
Solutions:
- Check resource path: Ensure resources are in
[qb]
folder - Verify manifest: Check
fxmanifest.lua
syntax - Dependencies: Ensure oxmysql loads before qb-core
Permission Errors
Error: You don't have permissions to access this
Solution:
Post-Installation Steps
1. Admin Setup
Add yourself as admin:
2. Basic Server Configuration
Configure basic server settings:
3. Job Configuration
Add or modify jobs in qb-core/shared/jobs.lua
:
Next Steps
After successful installation:
- QBCore Configuration - Learn about advanced configuration options
- Development Guide - Start developing custom resources
- Troubleshooting - Common issues and solutions
- Resource Management - Managing and updating QBCore resources
Congratulations! You now have a working QBCore server. Take time to familiarize yourself with the framework before adding custom resources.
Always backup your database and server files before making major changes or updates.