Skip to content

GetContainerLocked

A chest’s lock as the server keeps it.

GetContainerLocked(key)
Parameter Type
key string the chest’s key, or "*"

boolean | nil - true locked, false unlocked; nil when the server keeps no lock for it (the level’s own rules it)

if GetContainerLocked(ARMOURY) then print("the armoury is locked") end

SetContainerLocked · the Doors and containers group of the index