Garry's Mod Wiki

Revision Difference

Global.newproxy#529577

<function name="newproxy" parent="Global" type="libraryfunc"> <description>Returns a new userdata object.</description> <realm>Shared and Menu</realm> <args> <arg name="addMetatable" type="boolean" default="false">If true, the userdata will get its own metatable automatically.</arg> <arg name="addMetatable" type="boolean" default="false">If true, the userdata will get its own metatable automatically. If another newproxy is passed, it will create new one and copy its metatable.</arg> </args> <rets> <ret name="" type="userdata">The newly created userdata.</ret> </rets> </function>