NexthostingLogs

Logs / Error guide / FiveM

FiveM: “Could not find dependency … for resource …”

What the message means

A resource requires another resource in its fxmanifest.lua that is missing on the server or hasn't started yet. That's why the dependent resource doesn't start.

What it looks like in the log

[ c-scripting-core] Creating script environments for oxmysql
[ resources] Started resource oxmysql
[ resources] Could not find dependency ox_lib for resource ox_inventory.
[ resources] Couldn't start resource ox_inventory.

Excerpt from an example log, marked the way the analysis marks it.

Common causes

  • The required resource isn't installed (often ox_lib, oxmysql, PolyZone, es_extended or qb-core).
  • It's installed, but its folder is named differently than the dependency expects (for example ox_lib-main instead of ox_lib).
  • It's started in server.cfg after the dependent resource.
  • It's in a subfolder that isn't loaded.

How to fix it

  1. Read the name after “dependency”: this resource is missing.
  2. Download it (preferably the release, not the source code) and put it in your resources folder.
  3. Rename the folder exactly as it appears in the message – without -main or a version number.
  4. Add ensure <dependency> in server.cfg before the resource that needs it.