Marxy
January 16, 2017, 12:17am
1
Trying to figure out how to compile a valid .NET resource. Have just a simple script that should print to console when ran.
__resource.lua
source.cs
I added CitizenFX.Core as a reference and it builds without error but client still errors when connecting:
Files in frmx
My guess is Iām probably not building it correctly. Thanks again for any help
Marxy
January 16, 2017, 12:26am
2
well, removed the .dll to make sure i have a valid resource and now it still gives same error
Marxy
January 16, 2017, 12:39am
3
I suppose visual studio created the files with incorrect line endings. Removing __resource.lua, and client scripts, then recreating them with my normal editor fixed this issue. Now to see if i can get the client script to run
The script runtime checks for .net.dll
, so make sure your DLL is named like that.
Marxy
January 16, 2017, 5:53pm
5
yeah i got it thanks Have it running, just need to figure out how most of the functions work. Loving the api so far though