The #1 FiveM Framework

Build Amazing 🚔 Roleplay Servers 🎮 with QBCore

The most popular and feature-rich FiveM framework. Used by 5,000+ servers worldwide to create immersive gaming experiences.

Terminal
$git clone https://github.com/qbcore-framework/qb-core.git
Player Management
Modular Design
High Performance
5,000+
Active Servers
50,000+
Downloads
100+
Resources

See QBCore in Action

Watch how easy it is to create powerful roleplay features with QBCore's intuitive API and modular architecture.

qb-example/server/main.lua
1
-- Initialize QBCore Framework
2
local QBCore = exports["qb-core"]:GetCoreObject()
4
-- Create a new player event
5
RegisterServerEvent("qb-example:server:giveItem")
6
AddEventHandler("qb-example:server:giveItem", function(item, amount)
7
local src = source
8
local Player = QBCore.Functions.GetPlayer(src)
9
10
if Player then
11
Player.Functions.AddItem(item, amount)
12
TriggerClientEvent("inventory:client:ItemBox", src,
13
QBCore.Shared.Items[item], "add")
14
TriggerClientEvent("QBCore:Notify", src,
15
"You received " .. amount .. "x " .. item, "success")
16
end
17
end)
19
-- Export for other resources
20
exports("GivePlayerItem", function(playerId, item, amount)
21
TriggerEvent("qb-example:server:giveItem", item, amount)
22
end)

Simple Event System

Create server and client events with just a few lines of code. QBCore handles all the networking for you.

Player Management

Built-in player object with inventory, money, job management, and metadata storage out of the box.

Modular Architecture

Export functions between resources seamlessly. Build complex systems with reusable components.

Real-time Notifications

Integrated notification system with customizable styles and automatic item box displays.

Everything You Need to Build Epic Servers 🎯

QBCore comes packed with powerful features and tools that make server development faster, easier, and more enjoyable.

Player Management

Complete player system with jobs, gangs, permissions, and metadata

local Player = QBCore.Functions.GetPlayer(src)
Player.Functions.AddMoney("cash", 1000)
Player.Functions.SetJob("police", 1)

Database Integration

MySQL integration with automatic player data saving and loading

MySQL.insert('INSERT INTO player_vehicles 
(license, citizenid, vehicle, hash, mods) 
VALUES (?, ?, ?, ?, ?)', {
    license, citizenid, vehicle, hash, mods
})

Event System

Robust client-server communication with built-in validation

RegisterNetEvent('qb-example:client:notify')
AddEventHandler('qb-example:client:notify', function(msg)
    QBCore.Functions.Notify(msg, "success")
end)

Anti-Cheat Protection

Built-in protection against common exploits and cheating attempts

-- Automatic validation
QBCore.Functions.TriggerCallback('qb-police:server:getCops', 
function(cops)
    if cops >= Config.MinCops then
        -- Action allowed
    end
end)

High Performance

Optimized for large servers with minimal resource usage

-- Efficient player loops
CreateThread(function()
    while true do
        for playerId in pairs(QBCore.Functions.GetPlayers()) do
            -- Process players efficiently
        end
        Wait(30000) -- 30 second intervals
    end
end)

Highly Configurable

Extensive configuration options for every aspect of your server

Config = {}
Config.MaxPlayers = GetConvarInt('sv_maxclients', 48)
Config.DefaultMoney = {
    cash = 500,
    bank = 5000,
    crypto = 0
}

Multi-Language Support

Built-in localization system supporting multiple languages

local Lang = QBCore.Shared.Locale
Lang:t('info.received_paycheck', {
    value = ESX.Math.GroupDigits(salary)
})

Resource Management

Smart resource loading and dependency management system

QBCore.Functions.AddItems({
    ['bandage'] = {
        name = 'bandage',
        label = 'Bandage',
        weight = 115,
        type = 'item',
        image = 'bandage.png',
        unique = false,
        useable = true,
        shouldClose = true,
        combinable = nil,
        description = 'A bandage works every time'
    }
})
Ready to get started?View Documentation

Trusted by the Community 📊

See the real numbers behind QBCore's success. Our framework powers thousands of servers and brings joy to hundreds of thousands of players.

qb-terminal
5,000+
Active Servers
Servers running QBCore worldwide
$ qb-stats --servers
50,000+
Total Downloads
Framework installations to date
$ qb-stats --downloads
100,000+
Active Players
Players online across all servers
$ qb-stats --players
150+
Contributors
Developers contributing to QBCore
$ qb-stats --contributors
2,500+
GitHub Stars
Stars on GitHub repositories
$ qb-stats --stars
200+
Resources
Available resources and plugins
$ qb-stats --resources

Join the Largest FiveM Community

Become part of a thriving ecosystem of developers, server owners, and players who choose QBCore for their roleplay experiences.

Simple Yet PowerfulCode Examples

See how easy it is to get started with QBCore. From installation to advanced features, everything is designed to be developer-friendly.

Quick Installation

Get QBCore running on your server in seconds

# Clone the QBCore framework
git clone https://github.com/qbcore-framework/qb-core.git [qb-core]

# Start the core resource in your server.cfg
start qb-core

# Your server is now powered by QBCore!
bash

Create a Simple Job

Define custom jobs with unique mechanics

400">"text-green-400">-- Add this to your qb-core/shared/jobs.lua
[400">'police'] = {
    label = 400">'Police Department',
    defaultDuty = false,
    offDutyPay = false,
    grades = {
        [400">'0'] = { name = 400">'Cadet', payment = 75 },
        [400">'1'] = { name = 400">'Officer', payment = 100 },
        [400">'2'] = { name = 400">'Sergeant', payment = 125 },
        [400">'3'] = { name = 400">'Lieutenant', payment = 150 },
        [400">'4'] = { name = 400">'Chief', payment = 200, isboss = true }
    }
}
lua

Player Management

Handle player data with powerful APIs

400">"text-green-400">-- Get player data
400">"text-purple-400">local Player = QBCore.Functions.GetPlayer(source)

400">"text-green-400">-- Add money to player
Player.Functions.AddMoney(400">'cash', 1000, 400">'bonus-pay')

400">"text-green-400">-- Set player job
Player.Functions.SetJob(400">'police', 2)

400">"text-green-400">-- Save player data
Player.Functions.Save()

400">"text-green-400">-- Trigger client event
TriggerClientEvent(400">'qb-core:not400">ify', source, 400">'Welcome to the server!', 400">'success')
lua

Ready to Start Coding?

Dive into our comprehensive documentation and discover all the powerful features QBCore has to offer. From basic setup to advanced customization.

What the CommunitySays About QBCore

Don't just take our word for it. Here's what server owners, developers, and community leaders are saying about their QBCore experience.

QBCore transformed our server completely. The modular design made it so easy to customize everything to our needs. Our player count has doubled since the switch!

Player count doubled
👨‍💼

Alex Rivera

Server Owner

Los Santos RP

As a developer, I love how clean and well-documented QBCore is. The API is intuitive and the community support is incredible. Best framework decision we ever made.

Clean and well-documented
👩‍💻

Sarah Chen

Lead Developer

Liberty City Life

The stability and performance improvements were immediate. No more server crashes, and the new features keep our players engaged. QBCore just works.

Zero server crashes
👨‍🎮

Marcus Johnson

Community Manager

Vice City Stories

QBCore transformed our server completely. The modular design made it so easy to customize everything to our needs. Our player count has doubled since the switch!

Player count doubled
👨‍💼

Alex Rivera

Server Owner

Los Santos RP

As a developer, I love how clean and well-documented QBCore is. The API is intuitive and the community support is incredible. Best framework decision we ever made.

Clean and well-documented
👩‍💻

Sarah Chen

Lead Developer

Liberty City Life

The stability and performance improvements were immediate. No more server crashes, and the new features keep our players engaged. QBCore just works.

Zero server crashes
👨‍🎮

Marcus Johnson

Community Manager

Vice City Stories

QBCore transformed our server completely. The modular design made it so easy to customize everything to our needs. Our player count has doubled since the switch!

Player count doubled
👨‍💼

Alex Rivera

Server Owner

Los Santos RP

As a developer, I love how clean and well-documented QBCore is. The API is intuitive and the community support is incredible. Best framework decision we ever made.

Clean and well-documented
👩‍💻

Sarah Chen

Lead Developer

Liberty City Life

The stability and performance improvements were immediate. No more server crashes, and the new features keep our players engaged. QBCore just works.

Zero server crashes
👨‍🎮

Marcus Johnson

Community Manager

Vice City Stories

QBCore transformed our server completely. The modular design made it so easy to customize everything to our needs. Our player count has doubled since the switch!

Player count doubled
👨‍💼

Alex Rivera

Server Owner

Los Santos RP

As a developer, I love how clean and well-documented QBCore is. The API is intuitive and the community support is incredible. Best framework decision we ever made.

Clean and well-documented
👩‍💻

Sarah Chen

Lead Developer

Liberty City Life

The stability and performance improvements were immediate. No more server crashes, and the new features keep our players engaged. QBCore just works.

Zero server crashes
👨‍🎮

Marcus Johnson

Community Manager

Vice City Stories

Migrating from ESX was seamless. The documentation made it easy, and the performance gains were noticeable from day one. Highly recommended!

Seamless migration
👩‍🔧

Emma Thompson

Script Developer

San Andreas United

The built-in security features and anti-cheat protection have saved us countless hours. QBCore handles the heavy lifting so we can focus on our community.

Built-in security
👨‍💼

David Park

Server Admin

Night City RP

Our players love the smooth inventory system and job mechanics. The user experience is so much better now. Thank you QBCore team!

Better user experience
👩‍🎨

Lisa Rodriguez

Community Leader

Desert Springs RP

Migrating from ESX was seamless. The documentation made it easy, and the performance gains were noticeable from day one. Highly recommended!

Seamless migration
👩‍🔧

Emma Thompson

Script Developer

San Andreas United

The built-in security features and anti-cheat protection have saved us countless hours. QBCore handles the heavy lifting so we can focus on our community.

Built-in security
👨‍💼

David Park

Server Admin

Night City RP

Our players love the smooth inventory system and job mechanics. The user experience is so much better now. Thank you QBCore team!

Better user experience
👩‍🎨

Lisa Rodriguez

Community Leader

Desert Springs RP

Migrating from ESX was seamless. The documentation made it easy, and the performance gains were noticeable from day one. Highly recommended!

Seamless migration
👩‍🔧

Emma Thompson

Script Developer

San Andreas United

The built-in security features and anti-cheat protection have saved us countless hours. QBCore handles the heavy lifting so we can focus on our community.

Built-in security
👨‍💼

David Park

Server Admin

Night City RP

Our players love the smooth inventory system and job mechanics. The user experience is so much better now. Thank you QBCore team!

Better user experience
👩‍🎨

Lisa Rodriguez

Community Leader

Desert Springs RP

Migrating from ESX was seamless. The documentation made it easy, and the performance gains were noticeable from day one. Highly recommended!

Seamless migration
👩‍🔧

Emma Thompson

Script Developer

San Andreas United

The built-in security features and anti-cheat protection have saved us countless hours. QBCore handles the heavy lifting so we can focus on our community.

Built-in security
👨‍💼

David Park

Server Admin

Night City RP

Our players love the smooth inventory system and job mechanics. The user experience is so much better now. Thank you QBCore team!

Better user experience
👩‍🎨

Lisa Rodriguez

Community Leader

Desert Springs RP

Join These Success Stories

Ready to transform your FiveM server? Join thousands of successful servers that have made the switch to QBCore.