Help with scripting spots for a storage

Hello,

So I have a storage where packages can be load in. The thing is that the packages needs to be getting placed on a other spot if there is already a package on the spot.

I already know how I can make that happen but that will be causing some bugs adventually. So can someone help me with this? Maybe I need to use tables or something?

You could try using a value for each spawn location which is set to true when a box is loaded there, set to false when it is removed, and would prevent a box loading unless it is false

Already thought of that was not sure if that would work but ima try it out now!