Skip to content
Game Servers

Fix FiveM "Couldn't load resource" / Failed to Start

Couldn't load resourcefailed to start resourcecitizen:/scripting
8 min read Updated 12 June 2026 ESAGAMES Team

A 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.

Read the console / txAdmin log

The line right after "Couldn't load resource " names the real problem — a missing dependency, a manifest error or a Lua/JS syntax error. Always start there.

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…CauseFix
"could not find dependency" / "failed to load script"Missing framework or libraryEnsure the dependency before the resource
"no fx_version" / manifest / file not foundfxmanifest.lua errorFix the manifest and file paths
MySQL / connection refusedDatabase not connectedCorrect the mysql_connection_string
A file and line numberLua/JS error in the scriptFix 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

  1. Read the exact error under "Couldn't load resource".
  2. Validate fxmanifest.lua (fx_version, game, real file paths).
  3. Start dependencies (framework, oxmysql) before the resource.
  4. Verify the MySQL connection string and that the DB exists.
  5. Fix any Lua/JS error on the file:line the console reports.
  6. 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.

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.

FiveM hosting
FAQ

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.

Knowledge base

Related articles

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.

Payments Secure checkout with cards, banking apps and digital wallets.

Choose the payment flow that fits your stack and region without leaving the platform.

Pay by Zen Visa Mastercard Paysafecard PaysafeCash Skrill Trustly Bancontact UnionPay iDeal WebMoney