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
| Function | Description |
|---|---|
getmetafield | Reads a field from a target metatable without changing readonly state. |
getnamecallmethod | Returns the namecall method currently being invoked. |
getrawmetatable | Returns the raw metatable for a target value. |
hasmetafield | Checks whether a metatable contains a field. |
hasmetatable | Checks whether a target value has a metatable. |
isreadonly | Returns whether a table or metatable is currently readonly. |
makereadonly | Marks a table as readonly. |
makewriteable | Makes a readonly table writable. |
setnamecallmethod | Sets the current namecall method used by namecall hooks. |
setrawmetatable | Sets the raw metatable for a target value and returns the target. |
setreadonly | Changes the readonly state of a table or metatable. |