Troubleshooting guide

QBCore Export Not Found? Fix GetCoreObject and Resource Order

A QBCore export error usually means the framework did not load before your resource, the folder name is wrong, or the script uses an old core-object pattern.

Updated September 2026 · 7 min read · Stellar AI
Use this Stellar prompt:

“My QBCore script says export not found or GetCoreObject failed. Diagnose startup order, folder names, fxmanifest dependencies and outdated patterns before rewriting. Give me the smallest safe patch and a test plan.”

Debug my QBCore export error →

What the export error usually means

QBCore resources often start by asking qb-core for the core object. If the export is not found, the most common cause is not that your whole script is broken. It usually means qb-core did not start first, the resource folder is not actually named qb-core, the script is using an old pattern for your installed version, or the manifest does not declare the right dependency. The fix is to prove which of those is true before changing gameplay code.

Start by checking server.cfg. qb-core should be ensured before custom jobs, menus, shops, inventories or minigames that use QBCore. If your custom resource starts first, it may call exports['qb-core']:GetCoreObject() before the export exists. Also check for duplicate framework folders. A common mistake is installing a second qb-core folder inside another folder, or renaming qb-core to something friendly while scripts still call the original export name.

ensure qb-core
ensure oxmysql
ensure ox_lib
ensure my_custom_job

Check the framework pattern

Older QBCore examples used events or global variables. Newer examples usually use the export. Mixing patterns is a common cause of half-working scripts. If your resource uses TriggerEvent to get the core object, compare that with the rest of your server. If every newer resource uses exports['qb-core']:GetCoreObject(), then update the custom script consistently. Do not paste a random snippet without checking your installed framework version and the documentation for that version.

The manifest matters too. If the script depends on qb-core, declare it in fxmanifest.lua. If it also uses ox_lib or an inventory export, include those dependencies or start order checks as well. Declaring dependencies does not replace testing, but it gives the resource loader a clearer map and makes failures easier to understand.

Do not hide the error by moving code client-side

Sometimes a quick answer on a forum moves logic into a client file because it is easier to access a value there. That can create a security issue. Job checks, payments, item grants, society money and sensitive state should remain server-authoritative. The right fix for an export error is to load the dependency correctly and call the correct export, not to trust the client with permissions or rewards. If an AI answer removes server-side validation, ask it to preserve the security boundary.

Evidence to paste into Stellar AI

Paste your first console error, the relevant server.cfg ensure lines, fxmanifest.lua, the line where QBCore is assigned, and the exact folder names inside your resources directory. Mention whether you use qb-target, ox_target, qb-inventory, ox_inventory, ox_lib or a custom bridge. Ask Stellar to identify the likely cause first. The best answer should name one or two probable causes, show the exact changed line and tell you how to verify it after restart.

After patching, restart qb-core and the affected resource in a private environment. Confirm the console is clean, then test the feature with the right job and the wrong job. If the resource is a police, mechanic, ambulance or gang script, test grade checks as well as on-duty and off-duty states. Passing one happy path is not enough for a production roleplay server.

Fix the export without guessing

Stellar AI can compare your QBCore pattern, manifest and startup order, then suggest a small patch that keeps the server authoritative.

Open Stellar AI free →