Garry's Mod Wiki

newproxy

  userdata newproxy( boolean addMetatable = false )
  userdata newproxy( userdata userData )

Description

Creates a new userdata object.

Default Arguments

1 boolean addMetatable = false
If true, the created userdata will be given its own metatable.

Argument Overload: Userdata Copy

1 userdata userData
Creates a new userdata with the same metatable the userdata passed in had. The userdata passed in must be a userdata that has a metatable that was created from this function.

Returns

1 userdata
The newly created userdata.