How to know the ammount of items / resourcers on player´s inventory?

Yes. I know exactly what you suggest, but as you say it can be a mess with persistent data. :confused: