1. Code:
    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;
    }
    
    i Use code from plugin Trade, but when i push all 12 slots, 6 not move to another container, when i click save
    How fix this?
    [​IMG]
     
    Last edited by a moderator: Oct 11, 2016
  2. look also for the container inventory capacity and set equals to slots you did intilize the inv with.