Limited inventory script?

Hiii yall, I was looking for a Limited inventory script for XP but just found a few for other Rpgmakers.
What I'd need is a script that allows you to set a limited amount of item that can be carried (not per item, just a limited amount of item stocks!), and possibly choose to throw away and substitute an item when you find a new one (not strictly necessary though!!)

I can imagine such script already exists, if not, I'd be suprised... I just can't find anything!
Thank you so much :LZScat:
Here's a couple I found just googling:

Original thread: https://forums.rpgmakerweb.com/threads/limited-inventory-script.137313/