I'm trying to print out some userdata as a string, but the documentation for lua pretty weak to nonexistant. How do I convert a userdata variable to a string so that I can write it to a file?
tostring(userdata)
Creator of that userdata must provide __tostring
metamethod.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With