Garry's Mod Wiki

RegisterMetaTable

  RegisterMetaTable( string metaName, table metaTable )

Description

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

Arguments

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.