Aliases
None.Arguments
any
required
The object whose raw metatable is replaced.
table
required
The metatable to assign.
Returns
any
The original value after its raw metatable is set.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Sets the raw metatable and returns the original value.
setrawmetatable(value: any, mt: table): any
local t = {}
setrawmetatable(t, {__index = {answer = 42}})
print(t.answer)
