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.
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.