Fix FiveM "Couldn't load resource" / Failed to Start
Couldn't load resourcefailed to start resourcecitizen:/scriptingA FiveM resource that won't start almost always points to a manifest problem, a missing dependency or a script error. Here's how to read the txAdmin/console output and fix each cause.
The line right after "Couldn't load resource
The message on the next console line tells you which cause you've hit — match it here, then jump to that fix below:
| Console says something like… | Cause | Fix |
|---|---|---|
| "could not find dependency" / "failed to load script" | Missing framework or library | Ensure the dependency before the resource |
| "no fx_version" / manifest / file not found | fxmanifest.lua error | Fix the manifest and file paths |
| MySQL / connection refused | Database not connected | Correct the mysql_connection_string |
| A file and line number | Lua/JS error in the script | Fix the error on that line, restart |
Cause 1: fxmanifest.lua errors
Modern resources need an fxmanifest.lua (old ones used __resource.lua). A missing fx_version/game line, or a file listed in client_script/server_script that doesn't exist, stops the resource loading. A minimal valid manifest looks like:
fx_version 'cerulean'
game 'gta5'
client_script 'client.lua'
server_script 'server.lua'
shared_script 'config.lua'
Cause 2: a missing dependency
Many scripts depend on a framework (es_extended, qb-core) or a library (oxmysql, ox_lib). The dependency must start before the script. Add it to the manifest and make sure it's started first in your server.cfg:
# server.cfg — start order matters
ensure oxmysql
ensure es_extended
ensure my_resource
Cause 3: database not connected
If a resource uses MySQL and the connection string is wrong, it fails on start. Check the mysql_connection_string convar in server.cfg points to a database that exists:
set mysql_connection_string "mysql://user:password@127.0.0.1/database?charset=utf8mb4"
Cause 4: a script (Lua/JS) error
A syntax error or a runtime error in the resource's own code will stop it. The console prints the file and line — open it, fix the error, and restart the resource with restart my_resource from the console.
The clean checklist
- Read the exact error under "Couldn't load resource".
- Validate
fxmanifest.lua(fx_version, game, real file paths). - Start dependencies (framework, oxmysql) before the resource.
- Verify the MySQL connection string and that the DB exists.
- Fix any Lua/JS error on the file:line the console reports.
- Restart and watch the console for a clean start.
On FiveM, start order is everything: libraries and frameworks must be ensured before the scripts that use them.
More reasons FiveM shows "Couldn't load resource"
Beyond the four causes above: a resource folder nested inside the wrong category path (resources should sit in resources/[category]/resourcename/), two resources sharing the same name and colliding, or a failed txAdmin recipe/deploy that left the resource half-copied. Check the resource folder structure and, in txAdmin, re-run the deployer if a recipe install stopped partway through.
How to prevent "Couldn't load resource" errors
- Keep resources organised in category folders and avoid duplicate resource names.
- Pin dependency versions (framework, oxmysql, ox_lib) instead of always pulling latest.
- Test new or updated resources on a local/dev server before deploying to production.
- Keep your FXServer artifact/build updated — old builds can mis-parse newer manifest syntax.
- Check file/folder ownership on Linux so the FXServer user can actually read the resource files.
Related FiveM errors
If resources load but the server itself crashes, see FiveM CitizenFX crash. If the server won't appear in the in-game list, check FiveM server not showing in list. Players stuck mid-join should read FiveM stuck on connecting/handshake.
FiveM is a Cfx.re / Rockstar Games project. Grand Theft Auto V is a trademark of Rockstar Games / Take-Two Interactive. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Rockstar Games, Take-Two or Cfx.re. You must own a legitimate copy of the game.
Host FiveM the easy way
Our FiveM hosting ships txAdmin, MySQL and ESX/QBCore-ready setups on high-clock CPUs behind multi-Tbps Anti-DDoS.
Frequently asked questions
Why does my FiveM server get stuck on the loading screen?
Usually a resource error during start, a missing framework dependency, or a bad streamed asset. Check the server console for the first resource that fails — it's often the culprit blocking the rest.
What is the difference between fxmanifest.lua and __resource.lua?
fxmanifest.lua is the current manifest format; __resource.lua is the legacy one. New resources should use fxmanifest.lua with an fx_version line.
Do I need a legitimate copy of GTA V?
Yes. You and every player need a legal copy of Grand Theft Auto V on a Rockstar/Steam/Epic account to join a FiveM server.
Why does one broken resource stop other resources from starting?
If a resource is listed as a dependency for others (a framework or library), its failure to load blocks every resource that depends on it. Fix the root resource first, then the rest usually start normally.
Can duplicate resource names cause "Couldn't load resource"?
Yes. If two resource folders register the same name, FXServer can load the wrong one or refuse to start it. Rename or remove the duplicate folder.
Does txAdmin show more detail than the plain console?
Yes — txAdmin's recipe/deployer logs and resource monitor often show the exact step that failed (download, extraction, dependency install) in more detail than the raw server console.
Related articles
Fix AMX Mod X "Couldn't load library" / Plugin Failed in CS 1.6
AMXX plugin stuck on "bad load", "couldn't load library" or "failed"? The real causes and the exact fix.
Read fix Game ServersFix Rust Oxide / uMod Plugins Not Loading
Oxide/uMod plugins not loading after a Rust update? The usual causes and the quick fix.
Read fix Game ServersHow to Read a Minecraft Server Crash Report (and Fix It)
How to read a Minecraft crash report, find the mod/plugin at fault, and fix the most common crashes.
Read fix