I am wondering if I am missing something simple. I tried to check discord for related topics.
I am trying to setup a .net resource. I believe I have the Visual Studio project setup correctly.
when I start the server I am getting the following error:
Resource loading for nim failed:
Could not open resource metadata file C:/FiveM_root/RedM/server-data/resources//nim/__resource.lua.
I also get the warning:
Warning: Resource nim is not using CitizenFXv2 manifest. This is not allowed for the current game (rdr3).
Couldn't start resource nim.
I was under the impression ‘rdr3’ required ‘fxmanifest.lua’ instead of ‘__resource.lua’.
If I change the fxmanifest.lua to __resource.lua I get different errors but I still get the above warning.
Currently my manifest is very simple:
fx_version 'adamant'
games{'rdr3'}
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
client_script 'Nim.Client.net.dll'
server_scripts {
'Nim.Server.net.dll'
}
files {
'Nim.Library.dll'
}
and my resource folder has this file structure:
resources\nim\Nim.Client.net.dll
resources\nim\Nim.Server.net.dll
resources\nim\Nim.Library.dll
resources\nim\fxmanifest.lua
Just reading through discord it seems other people are able to use .net resources in redm just fine so I’m wondering if I am missing something simple. Currently Nim.Client.net.dll and Nim.Server.net.dll just have two classes ClientProgram and ServerProgram that inherit from BaseScript. Trying to get the basic resource loading before adding anything else.
I was able to get a project like this to work on fivem for GTA. I was also able to get resources using lua to work fine.
Thank you