1. Is there any way to prevent item moving from slot to slot or container to container? If i want to make a team battle, for example, and i want to prevent that players will change theyr team clothes? I m new in c# and need some help, thanks!
     
  2. You can use Stuff for the inventory like setting even more slots ( will not show in the UI , they would be invisible)
    If you set less slots. the others will be unavalible.

    Code:
    player.inventory.containerBelt.capacity = 6;

    you can Move the items --
    Code:
    item.MoveToContainer(player.inventory.containerBelt, 5);

    And you can lock slots .

    Code:
    Item x = player.inventory.containerBelt.GetSlot(6);
                if (x == null)
                    return;
                x.LockUnlock(false, player);
    [DOUBLEPOST=1508792103][/DOUBLEPOST]If you new to this, i recommend
    - Just download some Plugins and looking into them, maybe even save some useful methods out of them.
    -Looking into the Oxide Docs - Oxide API for Rust
    - Decompile the Rust assembly.dll and looking into the root directory. that gives an understanding what u CAN do with all those things , and what attributes u have avalible ex. for BasePlayer ( player.inventory... )
     
  3. Is it possible to lock the slots of deployables?

    I want to make a freesearch table. On deploy, it loads the table with 750 scrap, and locks the slot. After research, it fills the slot back up to 750.

    I've got CanMoveItem rigged to prevent moving scrap to or from the research table. Unfortunately, players can sneak around it. If they click 'drop' on the scrap inside the table, it drops it. Also, if they right click on the scrap inside the table, it sticks it in their inventory without checking CanMove Item.
     
    Last edited by a moderator: May 27, 2018