Server

Couldn't start or find resource

The server cannot locate a resource or its manifest. Almost always a folder name or fxmanifest problem.

The error
Couldn't start resource my_script.

Why it happens

  • The folder name does not match the name in ensure (names are case sensitive on Linux).
  • The resource is nested one folder too deep, e.g. resources/my_script/my_script/fxmanifest.lua.
  • fxmanifest.lua is missing, or the resource still uses the old __resource.lua.
  • The manifest is missing fx_version or game.

How to fix it

  1. Open the folder and check that fxmanifest.lua sits directly inside it.
  2. Make sure the folder name matches the ensure line exactly.
  3. Check the manifest has the basics:
Lua
fx_version 'cerulean'
game 'gta5'
lua54 'yes'

client_scripts { 'client.lua' }
server_scripts { 'server.lua' }
  1. In the server console run refresh and then ensure my_script. Read the lines printed just above the error, they usually name the exact file that failed.