Removing X amount of X item in inventory?
Hi,

i'm struggling around with removing a specific amount of an item.

player.inventory.FindItemID(-151838493).amount -= 10; <- Doesn't work, nothing happens. And all other remove methods are deleting the whole amount of the item. So it deletes it but i just wanna decrease it by 10.

Edit: Alternatively i could use the "SplitItem(int amount)" method, but is it really the right way? I want the small red decrease message on the right side by rust.
player.inventory.FindItemID(-151838493).UseItem(10);

Unfortunately I have no idea how to get the decrease message to pop up.

In response to Gachl ():
player.inventory.FindItemID(-151838493).UseItem(10);Unfortunately I have no idea how to get the dec...
Thank you anyways :)