qbcore-framework
3
总安装量
3
周安装量
#60363
全站排名
安装命令
npx skills add https://github.com/germanfndez/fiveai-skills --skill qbcore-framework
Agent 安装分布
opencode
3
gemini-cli
3
claude-code
3
github-copilot
3
codex
3
kimi-cli
3
Skill 文档
QBCore Framework Development
Complete guide for developing with QBCore Framework â a comprehensive FiveM roleplay framework providing core functionalities and modules.
When to use
- Creating or editing QBCore resources/scripts
- Working with player data (Player object, PlayerData)
- Implementing jobs, gangs, economy, or inventory systems
- Using QBCore client/server functions, callbacks, or events
- Questions about QBCore best practices and optimization
How to use
Read individual rule files for detailed explanations and examples:
- rules/core-concepts.md â QBCore architecture, PlayerData structure, Player object, framework initialization
- rules/client-functions.md â Client-side QBCore functions, notifications, player state management
- rules/server-functions.md â Server-side functions, player retrieval, callbacks, usable items
- rules/player-methods.md â Player object methods: money, items, jobs, gangs, metadata, accounts
- rules/jobs-gangs.md â Job system, gang system, payments, duty status
- rules/inventory-items.md â Inventory management, item handling, usable items
- rules/events-callbacks.md â QBCore events, server callbacks, client callbacks, event handling
- rules/best-practices.md â QBCore coding standards, optimization, security, naming conventions
- rules/reference-links.md â Official QBCore documentation links
Key principles
- Always check for nil â
if Player then ... endbefore using Player object - Use QBCore.Functions.GetPlayer â Standard player retrieval:
local Player = QBCore.Functions.GetPlayer(source) - Wait for player load â Check player loaded state on client before accessing PlayerData
- Never trust client â Validate all data server-side, secure your events
- Follow QBCore patterns â Use QBCore functions instead of reinventing (callbacks, notifications, etc.)
- Optimize loops â Cache player objects, use dynamic Wait times, avoid unnecessary calls
- Use camelCase â Follow Lua naming:
myVariable, local over global - Minimal globals â Keep variables local unless they need global scope
- Use ox_lib for UI â Prefer ox_lib for menus, dialogs, notifications, progress bars