Inventory full

Hi everyone hope you are all ok. What would be the coding for having the player only pick up 5 items and no more in the inventory. I know you can use the (ListCount ( ScopeInventory () ) >5) sort of thing. But can I use it in a single function or would I have to use it every time that I would pick up an object. Hope you understand this, thanks Terry. :D :D :D :D

Why don't you use the inventory limitation in the inventory tab of the player?

Crikey, I've never seen that before. It was right under my nose, but that's just me (derr) lol. Many many thanks Pertex, Terry :D :D :D :D