qbcore-development
Installation
SKILL.md
QBCore Framework Development
This skill provides guidelines and patterns for developing resources using the QBCore Framework.
1. Core Object Retrieval
To interact with QBCore, you must retrieve the Core Object. Always cache this in a local variable at the top of your scripts.
Client & Server:
local QBCore = exports['qb-core']:GetCoreObject()
2. Key Concepts
Player Data (Server-side)
- Identify players by Source temporarily, but use CitizenID for database persistence.
- QBCore.Functions.GetPlayer(source): Returns the Player object with all data.
- Player.PlayerData: Contains
job,gang,money,items,metadata, etc.