Fix FiveM 'Couldn't Start Resource' and Dependency Errors
Couldn't start resource in FiveM means a start check failed. Read the line above it, then fix the dependency, manifest, server build or folder name.
- Applies to
- FiveM Legacy servers, with the differences for FiveM for GTAV Enhanced (early access) noted; FXServer source of November 17, 2026; txAdmin v8.1.2; qbx_core 1.24.1, ESX Legacy 1.16.4, ox_lib 3.42.2 and oxmysql 2.14.3 manifests
- Last verified
On this page
- Direct Answer
- What “Couldn’t start resource” means in the FiveM server console
- Read the line above it: what each message means
- “Could not find dependency” for a resource: the name does not match
- “Could not start dependency”: fix the other resource first
- “Resource ‘X’ can’t run:” runtime constraint errors
- fx_version and game errors from fxmanifest.lua
- “Couldn’t find resource”: FXServer has no resource by that name
- How to fix a resource that will not start, step by step
- Does the order of ensure lines in server.cfg matter?
- Escrowed resources: “You lack the required entitlement”
- JavaScript resources: “Running build tasks on resource”
- FiveM Legacy vs FiveM for GTAV Enhanced
- When players see “Couldn’t start resource” while joining
- Troubleshooting
- Next Steps
Direct Answer
Couldn't start resource X. is the summary line FXServer prints when resource X exists but failed a start check. The reason is on the console lines just above it. Could not find dependency Y for resource X. means no loaded resource is called Y: install Y under that exact folder name. Could not start dependency Y means Y failed first: fix Y. Resource 'X' can't run: lists unmet server build, OneSync, game build or native requirements. An fx_version or game warning points at fxmanifest.lua. Fix the cause, run refresh, then ensure X. Couldn't find resource X. is a different error: no loaded resource has that name.
Unless another source is named, the console messages on this page were read in the public FXServer source (citizenfx/fivem, commit of November 17, 2026) and checked against the Cfx docs on November 21, 2026. The behaviour described is that of FiveM Legacy. What differs on FiveM for GTAV Enhanced has its own section.
What “Couldn’t start resource” means in the FiveM server console
Each start or ensure you type, and each ensure line in server.cfg, normally ends with one of four console lines (a start for a resource that is already running prints nothing):
| Console line | What happened |
|---|---|
Started resource X | Every check passed |
Started resource X (2 warnings) | It started anyway; the warnings above it are could not find lines for missing files or Asset ... uses ... MiB lines for large streamed assets |
Couldn't start resource X. | A folder named X was loaded, but a check refused it and it is still stopped |
Couldn't find resource X. | No loaded resource has the name X |
ensure has no start logic of its own. In the FXServer source it sends a start for the resource, preceded by a stop when the resource is already running and the server has finished reading server.cfg. That is why both commands print the same failure line.
A start runs in two stages, and each stage prints its own reason before it gives up:
- Before the start, FXServer works through the resource’s
dependencyanddependenciesentries. A missing dependency, a dependency that fails, an unmet runtime constraint, or a build task that still has to run stops the start here. - During the start, FXServer checks the
fx_versionandgamelines offxmanifest.lua.
A resource that fails the first stage never reaches the second, so fixing one problem can bring the next one to light. Script errors never stop a start: the scripts are loaded only after both stages have passed, a Lua file that fails to load prints Failed to load script ..., and the resource still reports Started resource.
Read the line above it: what each message means
Printed before Couldn't start resource X. | Cause | Fix |
|---|---|---|
Could not find dependency Y for resource X. | No loaded resource is called Y, and none declares provide 'Y' | Install Y under the folder name Y, then refresh |
Could not start dependency Y for resource X. | Y is installed, but its own start failed; its reason is printed above | Fix Y and start it; X is started after it |
Resource 'X' can't run: with numbered reasons | A runtime constraint in X’s manifest is not met | See the constraint table below |
Resource X does not specify an `fx_version` in fxmanifest.lua. | The fx_version line is missing or commented out | Put fx_version 'cerulean' at the top, spelled exactly |
Resource X does not support the current game (gta5). | No game entry names gta5 or common | Add game 'gta5' |
Resource X specifies both `common` and a specific game. This is considered ill-formed. | common and gta5 are both listed | Keep one of them |
Running build tasks on resource X - it'll restart once completed. | A builder has to prepare the resource first | Wait for Build tasks completed - starting resource X. |
You lack the required entitlement to use ... | An escrowed resource that this server’s key has no access to | See the entitlement section |
“Could not find dependency” for a resource: the name does not match
A manifest entry such as dependency 'oxmysql' or a dependencies { } list “requires the specified resource to load before the current resource”, in the words of the Resource Manifest reference. Before the start, the dependency loader looks up each name in the list of loaded resources. When no resource has that name, it accepts one that declares provide with it. When neither exists, it prints Could not find dependency Y for resource X. and stops checking. Only the first missing name is reported per attempt, so after you add it, start the resource again and read the console once more.
Why a dependency is “not found”:
- It is not installed. The README names it, but no folder in
resourcescarries that name. - It is installed under another name. In a Cfx forum thread from July 25, 2021,
es_extendedfailed withCould not find dependency async for resource es_extended.whileserver.cfgcontainedensure async-master. The answer in the thread was to renameasync-mastertoasync. The dependency name must match the folder name exactly. - It is installed but was never loaded. A folder without a manifest at its top level, or with a manifest that fails to parse, is dropped during the scan. Its dependants then fail as if it were missing. The scan messages are in the “Couldn’t find resource” section below.
- It was made for another framework. Qbox’s documentation shows the pair
Could not find dependency qb-target for resource my_script.andCouldn't start resource my_script.Qbox resources answer toqb-core,qb-vehiclekeys,qb-weathersync,qb-management,qb-mechanicjob,qb-taxijob,qb-towjob,qb-truckerjob,qb-scrapyard,qb-lapracesandqb-npwd. Any otherqb-dependency, such asqb-targetorqb-inventory, needs a Qbox option in the script’s config, a version from its author, or a developer. The QBCore to Qbox migration guide covers those scripts. - An update added a dependency. The
es_extendedmanifest of ESX Legacy 1.16.4 (October 18, 2026) listsesx_libas its first dependency, and ESX addedesx_libto its default resources in 1.14.1 (August 16, 2026). A server that updateses_extendedwithout installingesx_libgetsCould not find dependency esx_lib for resource es_extended. - The download holds a second resource. The
ox_lib3.42.2 manifest (November 7, 2026) lists a dependency namedrequire. Theox_lib.ziprelease contains two folders,ox_libandcfxlua-require, and the manifest ofcfxlua-requiredeclaresprovide 'require'. Copy both folders. Withox_libalone, the console showsCould not find dependency require for resource ox_lib., and every resource that depends onox_lib,qbx_coreincluded, fails after it.
One missing folder can fill the console. These seven lines come from the log posted in the 2021 thread:
[ c-resources-core] Could not find dependency async for resource es_extended.
[ citizen-server-impl] Couldn't start resource es_extended.
[ c-scripting-core] Creating script environments for esplugin_mysql
[ citizen-server-impl] Started resource esplugin_mysql
[ c-resources-core] Could not find dependency async for resource es_extended.
[ c-resources-core] Could not start dependency es_extended for resource esx_identity.
[ citizen-server-impl] Couldn't start resource esx_identity.
The framework core failed, and every ESX script that declares es_extended failed after it with Could not start dependency; the full log shows Could not start dependency es_extended for 30 scripts. Output from other resources sits in between. The first Could not find line is the one to fix. After the fix, run refresh and ensure es_extended: the scripts that failed with Could not start dependency es_extended were recorded as waiting for it, and FXServer starts them after it (see the next section). A full server restart works as well.
Core dependencies of Qbox, ESX Legacy and QBCore in November 2026
| Core resource | Version (date) | Declared in its manifest | What follows from it |
|---|---|---|---|
qbx_core (Qbox) | 1.24.1 (October 30, 2026) | /server:10731, /onesync, ox_lib, oxmysql; provide 'qb-core' | Needs FXServer build 10731 or newer and OneSync; scripts that ask for qb-core find it |
es_extended (ESX Legacy) | 1.16.4 (October 18, 2026) | esx_lib, two /native: constraints, oxmysql | The ESX recipe starts oxmysql, then esx_lib, then es_extended |
qb-core (QBCore) | 1.3.0 (last commit August 24, 2026) | oxmysql | QBCore’s docs now say it “has withdrawn from other platforms” |
oxmysql | 2.14.3 (October 6, 2026) | /server:12913 | On an FXServer build below 12913 it fails, and every core above reports Could not start dependency oxmysql |
This is the dependency block of es_extended 1.16.4, copied from its manifest. Plain names are resources; the entries that start with / are constraints, explained further down:
dependencies {
'esx_lib',
'/native:0x6AE51D4B',
'/native:0xA61C8FC6',
'oxmysql',
}
“Could not start dependency”: fix the other resource first
A dependency listed in the manifest does not have to be running already. If it is loaded but stopped, the loader starts it on the spot, before the resource that needs it. The official Qbox recipe relies on this: it runs ensure qbx_core before ensure [ox], the category its deployer unpacks oxmysql into, and qbx_core starts oxmysql itself.
When that inner start fails, the console shows Could not start dependency Y for resource X., and the dependency’s own failure is printed above it. Fix the dependency first, using the rest of this page.
Two more behaviours of the loader matter on a live server:
- The waiting resource starts later on its own. When a dependency fails to start, FXServer stores the pair “for deferred use (e.g. build systems)”. Once the dependency starts successfully, FXServer starts the resource that was waiting for it, as long as that resource passes its own checks.
- Stopping a dependency stops its dependants. When a resource stops, FXServer stops every resource that depends on it. A comment in the
ensurecode says what follows: if res2 depends on res1, “res1 restarting will lead to res2 stopping but not being started again”. After restartingoxmysql,ox_libor a framework core, start the dependants again or restart the server.
“Resource ‘X’ can’t run:” runtime constraint errors
A dependency entry that begins with / is a requirement on the server, not a resource name. The Resource Manifest reference calls these runtime constraints. When one fails, FXServer prints Resource 'X' can't run: and then one numbered reason per failed constraint:
| Entry | Requirement, per the docs | Reason printed when it fails | Fix |
|---|---|---|---|
/server:<build> | “A minimum server version (build >= [arg])” | server needs to be <build> or higher | Update FXServer to that build or newer |
/onesync | “State awareness not being disabled.” | onesync: OneSync needs to be enabled | Set OneSync to on |
/gameBuild:<build> | “Game build being set to at least this build.” | gameBuild(<build>): sv_enforceGameBuild needs to be at least <number> (current is <number>) | Raise sv_enforceGameBuild, then restart the server |
/native:<hash> | “The specified native being supported on the server.” | native(<hash>): native <hash> isn't supported | Run the server build the resource’s author requires |
The docs list a fifth type, /policy:, for a policy granted to the server key, with subdir_file_mapping (“clothing support”) as the example.
Details for each fix:
- Server build. FXServer takes its own build number from its version tag, the part after
v1.0.0., and compares it with the number in the manifest./server:12913in oxmysql 2.14.3 means build 12913 or newer. The FXServer artifacts guide shows how to update. - OneSync. The setting is
onesyncwith the valueson,offorlegacy. On a txAdmin server, txAdmin starts FXServer with+set onesynctaken from its own setting, and it rejects OneSync in Startup Arguments with “You cannot set OneSync in Startup Arguments.” Open Settings, the FXServer tab, click Show Advanced, choose On (recommended) under OneSync, click Save FXServer Settings and restart the server. - Game build. The constraint takes the same values as
sv_enforceGameBuild, aliases included: the docs’ example/gameBuild:h4“requires at least game build 2189”.sv_enforceGameBuild“can only be specified at startup”, so a full restart is needed. The sv_enforceGameBuild guide lists the builds. - Broken entries. A malformed entry prints
constraint syntax error, and an unknown type printsconstraint '<type>' is unknown. Either one points to a typo in the manifest, or to a resource written for a server that knows constraints yours does not.
fx_version and game errors from fxmanifest.lua
These two checks run in the second stage, so they appear once every dependency is in place.
“does not specify an fx_version in fxmanifest.lua”
The docs say fx_version “has to be one of a specific set of words” and name cerulean as the current version. The three versions are cerulean (2020-05), bodacious (2020-02) and adamant (2019-12), and FXServer accepts adamant or newer in a file named fxmanifest.lua. Put the line at the top and make sure it is not commented out with --. These are the first two lines of the qbx_core 1.24.1 manifest:
fx_version 'cerulean'
game 'gta5'
“does not support the current game (gta5)”
The game line names the games a resource runs on. gta5 “Runs on FiveM.” common “Runs on any game, but can’t access game-specific APIs - only CitizenFX APIs.” A FiveM server refuses a resource whose game entries name neither, and one that lists both common and gta5.
Both checks apply only to fxmanifest.lua. FXServer marks a resource as a CitizenFX v2 resource only when it loaded that file. A resource that still uses __resource.lua skips them on FiveM, because the source allows the old format “for GTA5 only”. The scan can flag such a resource with X has an outdated manifest (__resource.lua instead of fxmanifest.lua), a warning that does not stop it. fxmanifest.lua explained covers every manifest line.
“Couldn’t find resource”: FXServer has no resource by that name
FXServer builds its resource list by scanning the resources folder at startup and again on every refresh. The scanner takes each folder’s name as the resource name. A folder whose name starts with [ and ends with ] is a category: it is opened and scanned for more resources. Any other folder counts as one resource, and nothing inside it is searched.
The lookup behind start and ensure is an exact text match on that name: the source keeps loaded resources in a C++ std::unordered_map keyed by the name and finds the entry with the text you typed. This is the same on Windows and Linux, because the comparison happens in FXServer’s own code, not in the file system. When it finds nothing, the console prints Couldn't find resource X. These are the causes, and what the scan prints for each:
| Cause | Scan message | Fix |
|---|---|---|
The ensure line and the folder name differ, for example in capital letters or a suffix such as -master | None | Rename the folder or correct the line |
| The folder was added while the server was running | None until a rescan | Run refresh, which the docs say makes new resources “available to start” |
| The manifest is not directly inside the folder, often because of an extra folder level from unpacking | X does not have a resource manifest (fxmanifest.lua) | Move the inner folder up, or rename the outer one with brackets |
The resource folder itself is named with brackets, such as [my_script] | [my_script] is a category, but has a resource manifest (if this is meant to be a resource, don't use [] around the name) | Remove the brackets from the folder name |
| The manifest is not valid Lua | X failed to load: Could not parse resource metadata file ... followed by the Lua error | Fix the syntax error it names |
| The manifest runs into an error | X failed to load: Could not execute resource metadata file ... | Fix the Lua error after the colon |
The folder name starts with ., or the folder is named txAdmin in any letter case | None: the scanner skips both | Rename the folder |
For a category, the message is Couldn't find resource category [name]., which means no loaded resource sits below a folder with that bracketed name.
restart [category] also ends in Couldn't find resource. The Server Commands page says restart “Also supports category names”, but in the FXServer source restart looks its argument up as a single resource name and has no category branch, unlike start, stop and ensure. Use ensure [category] to restart a whole category.
“failed to load”: resource loading failed during the scan
A manifest that fails to parse or to run is reported as an error during the scan, and the resource is removed from the list. A folder with no manifest at all gets a warning and is removed the same way. Every later ensure for it prints Couldn't find resource, not Couldn't start resource. The scan output always has the same shape: Scanning resources., then each warning and error, then Found N resources. (or Found N new resources, and refreshed N/N resources. on a rescan), then a count such as 2 warnings were encountered. Read the lines between the first and the Found line after every change.
How to fix a resource that will not start, step by step
- Find the first error, not the last. In txAdmin, open Live Console. Without txAdmin, read the server console: the
FXServer.exewindow on Windows (cfx-server.exeon FiveM for GTAV Enhanced), or the terminal that runs the server on Linux. Search for the resource’s name: every start-failure message on this page includes it. When many resources failed, start with the earliestCould not find dependencyline, as in the cascade above. - Match the line to the table and make the change it calls for: install or rename a folder, edit
fxmanifest.lua, update FXServer, or change a server setting. - Rescan. Type
refresh, or click Reload & Refresh on txAdmin’s Resources page, which sends the same command. Check the scan messages for the folder you changed. - Start the resource. Type
ensure X, or click Start next to it on the Resources page, which sendsensure. Wait forStarted resource X. - Restart the server for startup settings. A changed
sv_enforceGameBuildneeds a full restart, because it “can only be specified at startup”. txAdmin also passes its OneSync setting only when it launches FXServer. - Start the dependants again. If you restarted a dependency on a live server,
ensurethe resources that depend on it. The Only stopped resources: switch on the Resources page shows what is still stopped.
The same checks apply to every resource, whoever made it, including FiveCrate’s own FiveM scripts.
Does the order of ensure lines in server.cfg matter?
For declared dependencies, no: the loader starts them first wherever their own ensure lines are. While server.cfg is still being read, ensure never restarts a resource that is already running. A source comment explains that a restart there would stop its dependants without starting them again. A later ensure line for a resource that already started as a dependency is therefore harmless.
The order matters for resources that use each other without declaring it. In a 2022 forum answer about start order, the two options given were placing one resource above the other in server.cfg, or adding a dependency in fxmanifest.lua. The script installation guide shows the full ensure order of the official recipes.
Escrowed resources: “You lack the required entitlement”
Cfx’s Asset Escrow page answers what happens when a server without access runs an escrowed resource: “The resource will not start, and an error stating ‘You lack the required entitlement’ will appear in the server console.” The same page says that when a subscription expires, the asset “will no longer start on the user’s server”. The entitlement error guide covers server keys and asset transfers.
JavaScript resources: “Running build tasks on resource”
On FiveM Legacy, a build task can hold a start back. While the system yarn resource runs, it registers a builder for any resource that has a package.json and no up-to-date .yarn.installed marker file, and runs yarn install in that folder. The sequence looks like this:
Running build tasks on resource X - it'll restart once completed.The start returns as failed in the meantime.Build tasks completed - starting resource X.FXServer then starts the resource again by itself.- On failure instead:
Building resource X failed.followed byError data: yarn failed!
A failed build leaves the resource stopped. The [yarn] lines printed before it show the output of the install.
FiveM Legacy vs FiveM for GTAV Enhanced
The What’s Changed page for FiveM for GTAV Enhanced, which is in early access, lists no change to resource names, the start commands or the dependency entries. It does list changes that decide whether some resources start:
| Topic | FiveM for GTAV Enhanced |
|---|---|
| Asset Escrow | “Not implemented yet” |
| Build tasks | “Resources can no longer be builders.” |
| OneSync | “OneSync big mode is now the only mode.”; P2P synchronization was removed |
| Game build | Only the latest game build (The Kortz Center Heist) is supported, and it loads when no other build is set |
| C# resources | “Mono was replaced by .NET.” |
The console messages on this page come from the public citizenfx/fivem source, and the What’s Changed page lists no change to them either.
When players see “Couldn’t start resource” while joining
The FiveM client has its own copy of the message. When a resource it downloaded from a server fails to start on the player’s game, the client shows Couldn't start resource X. as an error, and Couldn't load resource X: ... when the resource could not be downloaded or loaded. The client code tags both errors with the fault server and the action #ErrorAction_TryAgainContactOwner. Owners should check that X starts cleanly in the server console.
In a Cfx forum thread titled “Couldn’t start resource x” (opened May 15, 2025), several players reported that setting their PC clock to the correct time let them join. These are player reports, not a documented cause.
Troubleshooting
“Started resource” appears, but the script does nothing
Scripts load after the start checks have passed, and a load failure does not stop the resource. Look for Error parsing script X in resource Y (a syntax error), Error loading script X in resource Y (an error while the file ran), and Failed to load script X. Library imports such as '@ox_lib/init.lua' are not checked at start, so a missing library shows up as Failed to load script @ox_lib/init.lua. instead of a dependency error, unless the manifest also lists it as a dependency. When the failure is a call to another resource, see No such export errors.
Every ESX, Qbox or QBCore script fails at the same time
The framework core failed, and its dependants followed. Scroll up to the core’s own lines (es_extended, qbx_core or qb-core) and fix that error first. The root can be a dependency of the core itself: an FXServer build below 12913 fails oxmysql 2.14.3, which in turn fails all three cores, and an ox_lib installed without cfxlua-require fails qbx_core.
Scripts stopped after you restarted oxmysql, ox_lib or the framework
This is expected: stopping a resource stops everything that depends on it, and a restart does not bring those back. ensure each stopped script, or restart the server.
“Can’t restart a stopped resource.”
restart only works on a resource that is running. Use ensure X or start X instead.
The dependency is installed, but FXServer still cannot find it
Compare the folder name with the name in the manifest character by character. Check that its fxmanifest.lua sits directly inside it, that every folder between it and resources is a bracketed category, and that the scan did not print a warning for it. If the scan prints Y exists in more than one place (A is used, the duplicate is B), two folders share the name, and the message names the copy in use and the duplicate. Delete the copy you do not want.
“Couldn’t start resource” with no reason above it
The reason lines are printed before the summary, and other resources’ output can sit in between. Search the console for the resource name. Lines easy to miss are Running build tasks on resource X, which means the start is only delayed, and the entitlement error of an escrowed resource.
Next Steps
- Install a script so it starts on the first try with the FiveM script installation guide.
- Check every line of a manifest in fxmanifest.lua explained.
- Fix
/server:constraint failures by updating FXServer artifacts. - Work through script errors after the start in No such export errors.
FiveM scripts from FiveCrate
Listed in the FiveCrate catalogue now.
Official documentation and repository references
- Cfx.re Docs: Resource Manifest
- Cfx.re Docs: Introduction to Resources
- Cfx.re Docs: Server Commands
- Cfx.re Docs: What's Changed in FiveM for GTAV Enhanced
- citizenfx/fivem: ServerResources.cpp (start, ensure and manifest checks)
- citizenfx/fivem: ResourceDependencyLoader.cpp (dependency messages)
- citizenfx/fivem: ResourceManagerConstraintsComponent.cpp (runtime constraints)
- citizenfx/fivem: ServerResourceList.cpp (resource scan messages)
Related guides
Fix 'No Such Export in Resource' Errors in FiveM
Fix 'No such export in resource' in FiveM: find why the export is missing, then check the resource name, start order, client or server side and version.
fxmanifest.lua Explained for FiveM Server Owners
What each fxmanifest.lua line does in a FiveM resource: fx_version, game, scripts, files, data_file, dependencies, __resource.lua, lua54 and manifest errors.
How to Install FiveM Scripts and Resources Safely
How to install FiveM scripts: check the files, put the folder in resources, add its dependencies and SQL, then set the ensure order in server.cfg.
Fix 'You Lack the Required Entitlement' in FiveM
You lack the required entitlement: the Cfx.re account behind your FiveM server key does not hold the escrowed asset. Fix the key or transfer the asset.
How to Update FiveM Server Artifacts and Fix EOL Errors
Update FiveM server artifacts on Windows or Linux without losing txData: pick Recommended or Latest, then fix end-of-life, outdated and native errors.


