I recently created a small resource that is using exports for callbacks. This has been created from a built-in callback in another resource of mine.
As we all know, lua functions can have several return values:
function TestReturn() return data1, data2, data3 end local a, b, c = TestReturn()
But this doesn’t work for exports. I am guessing this is because of compatibility with C# and js exports?
My suggestion would be to remove this restriction for Lua entirely and in C# instead something like an object array containing the values. (I have never worked with js before, but I guess something similar would be possible there as well)
(related: Lua exports only allowing a single return value )