Garry's Mod Wiki

RegisterMetaTable

  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.

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.