Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Sets the metatable for a target value and returns the original target. metatable must be a table or nil; nil clears the metatable. debug.setmethods is an alias for setrawmethods.
setrawmetatable(target: any, metatable: table | nil): any
debug.setmetatable
local target = {} local meta = { label = "Real" } local returned = setrawmetatable(target, meta) print(returned == target) print(getrawmetatable(target) == meta) debug.setmetatable(target, nil) print(getrawmetatable(target))