not curx. if you are going to use slot IDs then you need to relate the slot ID to array X. so slot ID 1 is 1 in the array also. Then when you select the slot object which is ID 1, you take the slot_Id and then compare array x where array.x = slot.ID, then delete the contents. You should also get rid of item ID that's not needed. Think of the inventory more as the array and not the visual side.