Garry's Mod Wiki

Garry's Mod Wiki

  boolean debug.setmetatable( any object, table metatable )

Description

We advise against using this. It may be changed or removed in a future update.

Sets the object's metatable. Unlike setmetatable, this function works regardless of whether the first object passed is a valid table or not; this function even works on primitive datatypes such as numbers, functions, and even nil.

Arguments

1 any object
Object to set the metatable for.
2 table metatable
The metatable to set for the object. If this argument is nil, then the object's metatable is removed.

Returns

1 boolean
true if the object's metatable was set successfully.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...