script not found / failed to load
❌ Error
resource xyz failed to load / script not found
📍 Context
Occurs when the server or client cannot find the script/resource. Could be caused by:
- Missing resource folder
- Typo in
server.cfg
orfxmanifest.lua
- Dependencies not started
✅ Solution
- Ensure the resource folder exists in
resources/
. - Check
fxmanifest.lua
andserver.cfg
for typos. - Start dependencies before dependent scripts.
ℹ️ Additional Information
- Can appear on server console or client console.
- Check server logs for exact missing resource.
- Use
ensure resourceName
inserver.cfg
to start resources. - Verify resource names match folder names exactly (case-sensitive).