Welcome to Qbox Core
“And then there was Qbox” Qbox Core is a framework created on September 27, 2022, as a successor to qb-core and continues the development of a solid foundation for building easy-to-use, performant, and secure server resources.What is Qbox Core?
Qbox Core is the foundation for your FiveM GTA V roleplay server. Built with performance and security in mind, it provides everything you need to create an immersive roleplay experience.Installation
Get started with installing Qbox Core and its dependencies
Quick Start
Create your first character and learn the basics
API Reference
Explore the export-based API for reading and writing core data
Configuration
Configure your server settings and customize the framework
Key features
Qbox Core comes packed with features designed to make server development easier and more efficient:Backwards compatibility
The bridge layer provides backwards compatibility with most QB resources with zero effort required. Simply drop in your existing resources and they’ll work seamlessly.
Built-in multicharacter system
Players can create and manage multiple characters on your server:- Configurable character slots per player (default: 3)
- Custom character limits per license
- Character data isolation with automatic cleanup
- Integrated character selection UI
config/server.lua
Multi-job and gang support
Flexible job and gang system with support for multiple simultaneous jobs:- Primary and secondary job assignments
- Grade-based permissions and pay scales
- On/off duty system
- Society bank accounts integration
- Boss permissions and bank authorization
Queue system
Built-in queue system for managing server capacity:- Priority queue support
- Configurable queue positions
- Adaptive queue timing
- Custom join messages
Persistent vehicles
Vehicles persist across server restarts:- Automatic vehicle spawning at last location
- Configurable lock states
- Vehicle ownership tracking
- Integration with qbx_vehiclekeys
config/server.lua
Export-based API
Clean, modern API using exports for all core functionality:Developer modules
The core makes several optional modules available for developers to import into their resources:Hooks
Ox-style hooks to extend functionality of your resources
Logger
Log to Discord or Ox’s logger through one unified interface
Lib
Common functions for tables, strings, math, native audio, vehicles, and drawing text
Hooks module
Provide extensibility points in your resources:modules/hooks.lua
Logger module
Unified logging for Discord webhooks and Ox’s logger (Datadog, Grafana Loki, Fivemanage):Example Usage
Lib module
Utility functions for common operations:Money system
Flexible money system with configurable money types:config/server.lua
Player identifiers
Automatic generation of unique player identifiers:- citizenid: Unique character identifier (A + 7 random chars)
- AccountNumber: Bank account number
- PhoneNumber: 10-digit phone number
- FingerId: 15-character fingerprint ID
- WalletId: QB-style wallet ID
- SerialNumber: 8-digit serial number
Database structure
Qbox Core uses a modern database structure with proper foreign key constraints:qbx_core.sql
Need help?
Join our Discord
Get support, share ideas, and connect with the Qbox community