Open Etuldan opened 9 months ago
'Client/CitizenFX.Core.Client.dll'
This should NOT be included. This is the dll that contains the classes used in the client, this should be loaded from FiveM and not from your files.
'Client/CitizenFX.Core.Client.dll'
This should NOT be included. This is the dll that contains the classes used in the client, this should be loaded from FiveM and not from your files.
Unfortunately, I have the same issue without loading (in the fxmanifest) and/or copying the "CitizenFX.Core.Client.dll" from my build into the Client folder.
Looks like #85 is somehow back after some FiveM updates.
To be clear, my whole game doesn't crash, only my .NET module/plugin (client-side)
Yes, but it shows the same behavior: dynamic objects don't work, and exports are dynamics, hence exports will not work.
When I add LemonUI as nuget package in order to use it, my exports inside my C# FiveM addon won't work and crash my Client plugin.
Here is my stacktrack inside FiveM Client
My simple example code is :
The crash occurs when Onlogin is trigger by my custom
login:ready
event, and right after the debug messageTrying to get UserData
My csproj is made from the FiveM template resource, and I just added the LemonUI.FiveM package from nuget ( I'm using VS2022 and the FiveM SDK seems to use .NET Framework 4.5.2)
I put the 3 .dll files
CitizenFX.Core.Client.dll
LemonUI.FiveM.dll
TestResourceDotNet.Client.net.dll
generated by the build inside a Client folder, and myfxmanifest.lua
isBesides the Exports crashes, LemonUI features seems to be working fine.