CanMoveItem Problem

hello I am new to this I have a question using the code

object CanMoveItem(Item item, PlayerInventory playerLoot, ItemContainerId targetContainer, int targetSlot, int amount, ItemMoveModifier itemMoveModifier)
{

if (item.info.shortname == "scrap")
{

return false;
}

return null;
}

I avoid to move the item scrap from my inventory, how would I do so that only this function is executed when a player tries to move the scrap that are already inside a TC or cupboard.tool that the condition is activated in that term avoid moving from the TC but in the inventory let me freely move some solution would help me a lot your experience I am new to this

try CanAcceptItem​ 

Thanks for the suggestion, but what I need is to avoid moving an item that is deposited in a TC slot to the inventory of a player, that the player can not move the item for example scrap, I do not know how to implement it, do you have any reference as an example to be effective as follows

ZHf3Zs2gc8BS9uR.png Razor

try CanAcceptItem​ 

Anyone with the CanMoveItem in their code, this is the solve!  100x TYs!