Garry's Mod Wiki


  RegisterMetaTable( string metaName, table metaTable )

Recently Added

This was recently added in version (2024.06.04). It might only be available on the Dev Branch right now.


Registers a given table as a metatable. It can then be accessed by other code/addons via FindMetaTable.


1 string metaName
The new metatable name. Cannot override existing types.
2 table metaTable
The new metatable table. It will be given a MetaID and MetaName fields.