Need some help with C#/.NET resource

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 :slight_smile:

well, removed the .dll to make sure i have a valid resource and now it still gives same error :confused:

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 :wink:

The script runtime checks for .net.dll, so make sure your DLL is named like that. :stuck_out_tongue:

yeah i got it thanks :slight_smile:Have it running, just need to figure out how most of the functions work. Loving the api so far though