There is a pretty similar question asked here: How to call & await async C# method from Lua / MoonSharp script?
But this doesn't account for arguments. I want this for example to run:
private async Task<string> GetNicknameAsync(ulong id)
{
return await GetNicknameCodeAsync(id);
}
And then be able to do something like this in lua:
print(getNickname(372983297329234))