Category

Metatables

Metatables, metafields, and namecall methods.

Category guide

Overview

Use this overview to understand the category before opening a specific function.
  • See what this group of functions is meant to solve.
  • Compare function names and descriptions in one table.
  • Open a function for syntax, arguments, returns, and examples.

Metatables

Available functions

11 functions
FunctionDescription
getmetafieldReads a field from a target metatable without changing readonly state.
getnamecallmethodReturns the namecall method currently being invoked.
getrawmetatableReturns the raw metatable for a target value.
hasmetafieldChecks whether a metatable contains a field.
hasmetatableChecks whether a target value has a metatable.
isreadonlyReturns whether a table or metatable is currently readonly.
makereadonlyMarks a table as readonly.
makewriteableMakes a readonly table writable.
setnamecallmethodSets the current namecall method used by namecall hooks.
setrawmetatableSets the raw metatable for a target value and returns the target.
setreadonlyChanges the readonly state of a table or metatable.