Parameters
Returns
true if t is read-only, false otherwise.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
isreadonly(t: table): boolean
| Parameter | Type | Description |
|---|---|---|
t | table | The table to check. |
true if t is read-only, false otherwise.
local readonly = isreadonly(getrawmetatable(game))
local t = {hp = 100}
print(isreadonly(t)) --> false
setreadonly(t, true)
print(isreadonly(t)) --> true