MetatablesOverview
makereadonly
Represents marking a table as read-only.
Details#
Marks a table as read-only. This does not recursively freeze nested values. Use makewriteable or setreadonly(table, false) to change the table again.
Examples#
Example
local value = {}
makereadonly(value)
print(isreadonly(value)) -- true
makewriteable(value)