Update customized QBCore resources safely
Never overwrite a customized resource with a fresh download. Use Git to make the source and target states explicit.
Inventory
For each resource record its upstream URL, deployed commit, local branch, uncommitted files, database migrations, config ownership, and dependent resources.
git remote -v
git status --short
git rev-parse HEAD
git log --oneline --decorate -10Compare without changing production
git fetch origin main
git diff --stat HEAD..origin/main
git diff HEAD..origin/main -- fxmanifest.lua config.luaReview code and SQL in staging. Do not run repository-wide commands with an unresolved resource variable and do not assume every QBCore repository uses identical branches or file layouts.
Rollout
- Back up files and database; restore them on staging.
- Create an update branch from the deployed commit.
- Merge or cherry-pick reviewed upstream changes.
- Resolve local config/code changes deliberately.
- Run focused and end-to-end smoke tests.
- Deploy during a maintenance window with predefined rollback triggers.
- Tag or record the verified deployment commit.
Use the compatibility checklist and backup guide. When two customized resources fight over the same files, resolve it with the resource update conflicts guide.