I was looking through the wiki, and I came across this function:
[url]http://wiki.garrysmod.com/page/Global/newproxy[/url]
I tried playing around with it, setting its metatable, etc. However, I couldn't find a way to store any data or have any real use for a userdata object.
Would someone be kind enough to show me a simple implimentation of how you might use a userdata object in GLua? Even if it is silly/pointless, it would be much appreciated. Thanks!
newproxy is a hidden, unsupported, and undocumented feature of lua. It has no connection to gmod.
All it does is return a zero-length userdata object.
[url]http://lua-users.org/wiki/HiddenFeatures[/url]
[QUOTE=vexx21322;45503913]newproxy is a hidden, unsupported, and undocumented feature of lua. It has no connection to gmod.
All it does is return a zero-length userdata object.
[url]http://lua-users.org/wiki/HiddenFeatures[/url][/QUOTE]
Fascinating, thank you very much!
Sorry, you need to Log In to post a reply to this thread.