Hi, I have a small issue with getPlayerItemCount.
I know I might be showing this like a complete idiot, but according to the
Code:
getPlayerItemCountI'm not even sure why I'm showing the database value there
What I'm mainly trying to point out is that towards the end, you can see that I drop the item, but the console still says that I have it. (It's still in the database because it simply isn't being removed from the engine's inventory.)Am I just being dumb and have something configured incorrectly? I also tried the
Code:
hasPlayerItemCode:
true(The code and how I’m using it are shown in the video.)
Edit : Second test picked items from ground
![[Image: 1788165616_0527.png]](https://img.redwestrp.eu/img/1788165616_0527.png)
Third edit :
I found out that if I give myself an item and remove it using the function, it works really well. But it only works with giveitem/removeItem.
The problem occurs when, for example, I pick up an item from the ground — the value doesn't get updated. The same happens when I drop an item — the value doesn't get updated and stays the same.
