I somehow can’t get the Newtonsoft.Json.ddl assembly to work in a client script, I have the portable version of newtonsoft.json in my project but in fivem I get the error Newtonsoft.Json: File not found.
1 Like
What version are you trying to install? It’s been a while since I coded C# in FiveM but I remember using version 12.0.0.0 and that nothing later would work.
1 Like
This is the copy I’ve always used.
Newtonsoft.Json.dll (442.4 KB)
Under ItemGroup
in your .csproj
file
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Newtonsoft.Json.dll</HintPath>
</Reference>
Make sure to include it in your FXManifest.
files {
"Newtonsoft.Json.dll"
}
3 Likes
i’ll try that tomorrow, thank you very much.