Now I will tell you how to make a chest that is locked, and the way to get a key to unlock it.
First, go to items, and add a new one called key. Give it a description.
Second, go to containers and add a new one called Chest. In the details tab uncheck open and check locked. Then paste this script into the chest.
function OnUnlock(){
if(Sender.ItemExists(KEY-ID)){//insert the ID of your key here
Self.Unlock();
Echo("~"+Sender.Name+" unlocks the chest.~<>");
}
else{
Echo("~You need a key to unlock this chest.~<>");
}
}
You can store anything you don't want to make it too easy for the player to get in the chest.