What is the QB-Core Bridge?
The QB-Core compatibility bridge is a built-in compatibility layer in Qbox Core that allows most QB-Core resources to run without any modifications. This bridge translates QB-Core API calls to their Qbox equivalents, making migration seamless.The bridge layer provides backwards compatibility with most QB resources with zero effort required. Simply start your QB resource and it will work with Qbox.
How It Works
The bridge provides a complete QB-Core API surface that internally calls Qbox’s modern implementations:- Shared Layer: Translates items, jobs, gangs, and utility functions
- Server Layer: Wraps player objects, functions, and commands
- Client Layer: Provides UI elements, notifications, and vehicle functions
Core Object
The bridge exposes aqb-core compatible object through the standard export:
QBCore.FunctionsQBCore.Player(server)QBCore.SharedQBCore.Config
Enabling/Disabling the Bridge
The bridge is enabled by default. You can control it using a convar:Architecture
The bridge is organized into three main contexts:Shared (bridge/qb/shared/)
- Items: Automatically converts ox_inventory items to QB-Core format
- Jobs & Gangs: Provides real-time access to job and gang data
- Utilities: Wraps common string/math operations to ox_lib equivalents
Server (bridge/qb/server/)
- Player Functions: All QB player methods work seamlessly
- Server Functions: GetPlayer, CreateUseableItem, Notify, etc.
- Commands: QB-Core command registration API
- Callbacks: Legacy callback system (deprecated in favor of ox_lib)
Client (bridge/qb/client/)
- PlayerData: Access to character data
- Notifications: QB-style notifications via ox_lib
- DrawText: Text UI compatibility
- Vehicle Functions: Spawning, properties, etc.
Inventory Integration
The bridge automatically handles inventory differences between qb-inventory and ox_inventory:Event Compatibility
The bridge maintains all standard QB-Core events:Server Events
QBCore:Server:PlayerLoadedQBCore:Server:OnPlayerUnloadQBCore:Server:OnJobUpdateQBCore:Server:SetMetaData- Vehicle events via
baseevents
Client Events
QBCore:Client:OnPlayerLoadedQBCore:Client:OnPlayerUnloadQBCore:Client:OnJobUpdateQBCore:Client:OnGangUpdateQBCore:Client:VehicleInfo
Deprecation Notices
Many QB-Core functions are marked as deprecated with guidance on modern alternatives:Performance Considerations
The bridge adds minimal overhead:- Most functions are simple wrappers calling Qbox/ox_lib directly
- No polling or continuous processing
- Items are converted once at startup
- Jobs/gangs sync automatically via events
Next Steps
Compatibility Details
See exactly which QB resources and functions are supported
API Reference
View the complete native Qbox API exports reference