FiveM C#, Use Newtonsoft.Json.dll in Client script

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