What problem does it solve?
This Skill provides structured guidance for developing resources on the FiveM QBCore framework, helping teams write consistent, maintainable code.
Core Features & Use Cases
- Core Object & Player Data: Demonstrates how to obtain the QBCore core object and access Player data reliably across client and server scripts.
- APIs, Callbacks & Events: Illustrates using QBCore.Functions.GetPlayer, CreateCallback, and TriggerCallback patterns, plus event-driven data updates.
- Database & Items: Shows how to interact with the database via oxmysql or equivalent, and how to define and use items within resources.
- Structure & Best Practices: Provides standard resource layout, citations to official docs, and common best practices for performance and security.
Quick Start
Initialize a basic QBCore resource by creating client/main.lua and server/main.lua with a top-level line: local QBCore = exports['qb-core']:GetCoreObject() and follow the patterns in this skill.