i Use code from plugin Trade, but when i push all 12 slots, 6 not move to another container, when i click saveCode:var view = GameManager.server.CreateEntity("assets/prefabs/deployable/woodenbox/woodbox_deployed.prefab", pos) as StorageContainer; view.enableSaving = false; view.Spawn(); view.inventory = CreateContainer(player);private static ItemContainer CreateContainer(BasePlayer player) { ItemContainer container = new ItemContainer { playerOwner = player }; container.ServerInitialize((Item)null, 12); if((int)container.uid == 0) container.GiveUID(); return container; }
How fix this?
![]()
Solved Trouble setting box capacity over 6
Discussion in 'Rust Development' started by bazuka5801, Oct 11, 2016.
