Qbox: how the framework works
Qbox is a framework for FiveM roleplay servers. A framework is the engine underneath all of your roleplay scripts: it tracks who is logged in, their character, money, and job. Qbox is a modern fork of an older framework called QBCore, rebuilt on the ox resources (ox_lib and ox_inventory). This lesson shows you how the framework itself works, not inventory or other add-on scripts.
What is Qbox?
Qbox is a framework for FiveM (GTA V roleplay servers). Think of it as the "engine" or "foundation" underneath all of your roleplay scripts.
The core resource is called qbx_core. It handles things like:
- Players who is logged in, their character, money, job, gang.
- Jobs and gangs police, mechanic, mafia, and so on.
- Money cash, bank, and dirty money (crypto).
- Commands the things you type in chat like
/jobor/car. - Metadata extra data about a player such as hunger, thirst, stress.
Other scripts (an inventory, a gas-station job, a car dealership) build on top of Qbox and ask qbx_core for help: "Who is this player? How much money do they have? Take 500 from the bank."
Important: The core resource is
qbx_core. Everything else (ox_inventory, a job script, and so on) is a separate resource that depends onqbx_core.
Keep reading the full lesson
Sign in to start, then unlock every step of this lesson and the full FiveM School with a membership.
- Key concepts (read this first)
- How you reach the framework
- PlayerData: everything about a player
- Server functions
- Client functions
- Commands: make your own
- Callbacks: secure communication
- Jobs: where they live
- A complete mini example
- Common mistakes and pitfalls
The remainder of Qbox: how the framework works is available to FiveM School members.