fxmanifest.lua using the dependencies field. When a required resource is missing or not yet started, the script will either silently fail to initialise or throw errors in your server console. Reviewing the dependency list before installing a new script saves you debugging time and prevents hard-to-trace issues in production.
How to Check a Script’s Dependencies
Open the resource folder and readfxmanifest.lua. The dependencies block lists every resource that must be running before this script starts:
fxmanifest.lua
Common Dependencies
The table below covers the dependencies you will encounter most frequently across the SH Development catalogue.| Resource | Required by | Notes |
|---|---|---|
oxmysql | Any script with database persistence (trucking XP, vehicle keys, MDT, housing) | Best practice: ensure it before all other resources in server.cfg. |
ox_lib | sh-drugs, sh-trucking, sh-npcbartend, and others | Provides UI menus, progress circles, and notifications. |
PolyZone | sh-fishing, sh-drugs, sh-zones, sh-burgershot | Used for geographic zone detection and trigger areas. |
sh-notify | Used as the default notification system in many scripts | Can be swapped via Config.Notify if you prefer another system. |
bob74_ipl | sh-drugs (interior loading) | Required for meth lab and cocaine lockup interiors to load correctly. |
warmenu | sh-vehiclespawner | Required for the spawner’s radial menu UI. |
screenshot-basic | sh-reports | Required to attach in-game screenshots to player reports. |
qb-target or ox_target | Optional in most scripts | Enables third-eye interaction. Set via Config.Target in config.lua. |
Ensuring Dependencies in the Correct Order
FiveM starts resources in the order they appear inserver.cfg. Dependencies must be ensured before the scripts that need them. A safe ordering pattern looks like this:
server.cfg
Optional vs. Required Dependencies
Some dependencies are optional and only activate when you enable a related config option:qb-target/ox_target— Only needed whenConfig.Targetis set to'qb'or'ox'. If you leaveConfig.Target = false, neither resource is required.sh-notify— Only required whenConfig.Notify = 'sh'. Switch to'okok'or'custom'and you can remove it from the dependency chain.