Would it be possible to make a safe system that saves?

I’m currently making a roleplay game and I want it so that a player can put items in a safe, and it saves so the next time he joins they will stay be in there, is it even possible? If so how would I go about doing it. Thanks

Make sure each item has an id, then you can save it as a table. For empty slots, you can put an empty string. Then when you load, you can use the index to determine which slot in the safe it is.

1 Like