Hi, its possible to get the slot position of an item in a chest.
i can loop all aviable items in a inventory but i need to get the slot numer eg: slot1 = emty, slot2 = bla, slot3=emtpy.....
thanks for help![]()
Getting inventory slot in chest? (C#)
Discussion in 'Rust Development' started by Sir BenSon, Oct 12, 2016.
-
Wulf Community Admin
Yes, how are you wanting to get the chest?
-
every item has a Field "position":
An ItemCointainer can be searched for an item with (return an Item):Code:// Item public int position;
Code:FindItemByItemID(int itemid)FindItemByUID(uint iUID)
