Hi there, is it possible to pick up any item from the player's inventory? (Via hooks, comands etc.)
Thanks in advance
Item pick up from the player's inventory
Discussion in 'Rust Development' started by Shadow 7, Jun 14, 2015.
-
Just use InventoryViewer plugin...
-
Code:
PlayerInventory inv = player.inventory; Item item = player.inventory.FindItemID("wood"); int item_id = item.info.itemid; inv.Take(inv.FindItemIDs(item_id),item_id,1000);
-
-
-
-
-
-
Example of Quantity:
Code:int refined = crafter.inventory.GetAmount(374890416); if(refined >= 1)
-
-
I use dotPeek decompiler on the Assembly.CSharp in your managed folder. But that method I got from @k1lly0u.