Open DaniGP17 opened 2 weeks ago
Hi. Can you upload minimal resource to reproduce it and code how do you use this export in Lua?
Hi. Can you upload minimal resource to reproduce it and code how do you use this export in Lua?
Hello, sorry I did not attach a code to reproduce the error because all the methods I tried resulted in this same error and I assumed that it would not work in any way, here I attach the code that I am using to test it: C#:
using CitizenFX.Core;
using System.Collections.Generic;
namespace monodb
{
public class Program : BaseScript
{
[Export("ExportTesting")]
private string ExportE2()
{
return "yeehaa";
}
}
}
Lua:
local result = exports.monodb:ExportTesting()
print('Export result: ', result)
I have the same problem even when I call something like this up
using CitizenFX.Core;
namespace CsClient
{
public class Program : BaseScript
{
public Program()
{
Debug.WriteLine("test first");
}
[Export("test")]
public void test()
{
Debug.WriteLine("test");
}
}
}
I have the same problem even when I call something like this up
I think that's a problem caused by the new msg pack serializer
What happened?
After the new addition of the custom msgpack serializer(#2546), the export system has stopped working, and I always get an error when I run an export registered in C# from lua.
Expected result
Don't show any errors
Reproduction steps
Importancy
Crash
Area(s)
FXServer, ScRT: C#
Specific version(s)
Server 8552(Latest)
Additional information
Error: