makereadonly
Makes a table read-only.
Syntax
makereadonly(target: table) -> ()
Also available as
make_read_only
Parameters
| Parameter | Type | Description |
|---|---|---|
target | table | The table to freeze. |
Description
The same as setreadonly(target, true).
Example
local config = { Speed = 16 }
makereadonly(config)
print(pcall(function() config.Speed = 100 end))
These are Game executor contracts. Check build requirements and session lifetimes before using them.
