Completely emptying a players Inventory?
Discussion in 'Rust Development' started by Rusty, Jul 16, 2016.
-
Wulf Community Admin
player.inventory.Strip() most likely.
-
Ive had issues that in the past ... anyway to do a simple check to see if theres any items in inv?
-
Wulf Community Admin
player.iventory.AllItems().Count() perhaps. -
Yes, whats the LUA equivalent of .Count() ? Size of array
-
.Length should work
-
Worked, thanks! player.inventory:AllItems().Length
