registerHook using the event name onItemTransferred.
Payload
The admin inventory (omnipack) does not trigger this hook, it has its own
onOmnipackTransaction. This way the restrictions you write for your players are never applied to an admin spawning an item.Examples
Block police weapons in player inventory
Block police weapons in player inventory
Simple crafting (drag items together)
Simple crafting (drag items together)
registerHook API, available filters (including the transfer-specific inventoryFromTypeFilter/inventoryToTypeFilter/intraInventoryOnly), and return-value behavior.