Sets a table’s readonly flag directly. Setting it to false on a game metatable is what lets you edit the metatable, so remember to set it back to true afterward if you want to leave things as you found them.

Parameters

table
required
The table to change.
boolean
required
true to lock, false to unlock.

Example

Errors