Client won't connect to server due to no "__resource.lua" being present

When I checked the docs it was saying that new keyword for __resource.lua is fxmanifest.lua but when I changed my file name from the old version to the new version my client started to refuse connection to the server due to __resources.lua not being present. This seems odd to me. Should I not use fxmanifest.lua?

My scripts are written in C# only if that’s going to make any difference…

  1. Update your server artifact
  2. You can’t just rename it. As you can see in the docs, the format is slightly different (fx_version, game etc)

this is the error I am getting.

this is my fxmanifest:

it is complaining from missing _resource.lua. That’s the whole point of my using a fxmanifest. Not to use __resource.lua as it is deprecated stated by the developers

Old server artifact? Or perhaps wrong file extension on fxmanifest?

I am using the latest recommended artifact(2430). I suppose this is the LTS version as it is defined as ‘recommended’. Maybe that’s my fault, am I supposed to use latest version rather than the LTS(latest recommended) one to be able to use fxmanifest?

my file extension is fxmanifest.lua, pretty sure that’s correct.

I found the problem. If the encoding of the LUA file is not UTF-8 FiveM can not load it. That’s the issue. Changing my encoding to UTF-8 fixed the issue.

As far as I know LUA intermediate supports almost all byte encoding but this is probably regarding the implementation done on FiveM side.

1 Like

Yes, encoding should be UTF-8