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-multicharacterv3

Step 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:

Column
Usage

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)

QBox uses license2 instead of license for player identification.


πŸ”§ 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

Feature
QBCore
QBox

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:

  1. Verify player has Steam/license2

  2. 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:OnPlayerLoaded

  • QBCore:Client:OnPlayerLoaded

Last updated