golua
golua copied to clipboard
[Help] Getting a return value from lua
I have a lua script like below:
return {
answer = 42,
ok = true
}
I'd like to retrieve the table that the script has returned, I've seen the other issue #101, and I don't quite understand how to obtain the return value.
Perhaps I need an example of how to access it.
Just a short example will do, as once I see it I am sure I'll be able to work my way to understanding how to do it for further cases.