QBox Setup
Complete guide for setting up 0r-multicharacterv3 with QBox (qbx_core) framework.
β
Requirements
qbx_core (latest version)
ox_lib
oxmysql
A compatible inventory (ox_inventory recommended)
A compatible clothing script
π Quick Setup
QBox is designed to work seamlessly with modern resources. Setup is minimal.
Step 1: Disable Default Multicharacter
# server.cfg
# ensure qbx_multicharacter <-- Comment out or remove
ensure 0r-multicharacterv3Step 2: Start Order
ensure oxmysql
ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure bl_appearance
ensure 0r-multicharacterv3ποΈ Database
QBox uses the same players table structure as QBCore:
citizenid
Unique character identifier
cid
Character slot number
license
Player identifier (license2)
charinfo
Character information (JSON)
job
Job data (JSON)
money
Money data (JSON)
position
Last position (JSON)
π§ Framework Functions
The script uses QBox exports:
π Spawn Integration
qbx_spawn
If using qbx_spawn:
This triggers:
β‘ Events
Server Events
QBox uses the same events as QBCore:
π Character Deletion
Configure in config/database.lua:
π Complete Configuration
π QBCore vs QBox Differences
Player ID
license
license2
Exports
qb-core
qbx_core
Spawn
qb-spawn
qbx_spawn
Modern Lua
No
Yes
β Troubleshooting
"Player not found" error
QBox uses license2:
Verify player has Steam/license2
Check database for correct identifier
Commands not refreshing
QBox handles commands differently. The RefreshCommand function is empty for QBox as it's not needed.
Compatibility with QBCore resources
Many QBCore resources work with QBox. The script triggers the same events:
QBCore:Server:OnPlayerLoadedQBCore:Client:OnPlayerLoaded
Last updated