Garry's Mod Wiki


boolean debug.setmetatable( any object, table metatable )


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.


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.


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

Page Links

Special Pages



Render Time: 38ms

DB GetPage 3
Generate Html 11
SaveChanges (1) 15
Render Body 0
Render Sidebar 7