Garry's Mod Wiki

debug.getmetatable

  table debug.getmetatable( any object )

Description

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.