How to Set Admin in QBCore | Official QBCore Store
Introduction
This guide converts **How to Set Admin in QBCore | Official QBCore Store** into a clean, developer-first QBCore/FiveM tutorial. Follow the steps, apply the patterns, and validate everything in your own dev environment.
Requirements
- QBCore installed on a dev server
- Basic comfort with configuration files and Lua/FiveM workflow
- A test workflow (dev server before production changes)
- Optional: VS Code + Lua/FiveM helpers for faster iteration
Step-by-Step Guide
Step 1: Open server.cfg
In this step, you will implement the key idea **Open server.cfg**, ensure it works as expected, and note any edge cases before moving to the next part.
Step 2: Add Admin Permissions
In this step, you will implement the key idea **Add Admin Permissions**, ensure it works as expected, and note any edge cases before moving to the next part.
Step 3: Save & Restart the Server
In this step, you will implement the key idea **Save & Restart the Server**, ensure it works as expected, and note any edge cases before moving to the next part.
Step 4: Need More Help?
In this step, you will implement the key idea **Need More Help?**, ensure it works as expected, and note any edge cases before moving to the next part.
Code Example
QBCore Admin Permissions
add_ace group.admin command allow
add_ace group.admin qbcore.admin allow
add_principal identifier.steam:110000123456789 group.admin
add_principal identifier.discord:123456789012345678 group.admin
add_principal identifier.license:license:4a3cdhfa3219 group.admin
Tips & Best Practices
- Prefer small, verifiable changes over big rewrites.
- Keep secrets/config credentials out of public repos.
- When something fails, check the server console first and follow the dependency chain.
- Avoid performance pitfalls: never freeze threads/loops; yield with
Wait()where appropriate.