Garry's Mod Wiki

debug.getmetatable

  table debug.getmetatable( any object )

Description

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

Returns the metatable of an object. This function ignores the metatable's __metatable field.

Arguments

1 any object
The object to retrieve the metatable from.

Returns

1 table
The metatable of the given object.