QBCore: how the framework works
A framework is the foundation your roleplay scripts sit on. QBCore is one of the most popular FiveM frameworks. It tracks who is logged in, their money, their job, their items, and more. The resource that does this is called qb-core. Everything else (qb-inventory, qb-policejob) is a separate script that depends on qb-core and asks it for help. This lesson is about qb-core itself, not the scripts built on top of it.
What is QBCore?
QBCore is a framework for FiveM, which means GTA V roleplay servers. Think of it as the engine underneath all of your roleplay scripts.
QBCore itself handles these things:
- Players. Who is logged in, their character, money, job, and gang.
- Jobs and gangs. Police, mechanic, mafia, and so on.
- Money. Cash, bank, and dirty money (crypto).
- Commands. The lines you type in chat, like
/jobor/car. - Extra data about a player, like hunger, thirst, and stress.