AcediaDocumentation

Metatables

Raw metatables, readonly state and namecall context.

Metatable functions inspect or change raw metatables and their readonly state. Namecall helpers work with the method name of the current namecall.

Changing a shared userdata metatable can affect more than the object you started from.

Functions

FunctionPurpose
getrawmetatableReads a value's metatable without honoring the __metatable lock.
setrawmetatableSets an object's metatable without honoring its lock.
isreadonlyChecks whether a table is readonly.
iswritableChecks whether a table is writable.
setreadonlyChanges a table's readonly flag.
makereadonlyMakes a table readonly.
makewritableMakes a table writable.
getnamecallmethodReads the active namecall method name.
setnamecallmethodChanges the active namecall method name.

On this page