OnItemRemoved||doc136892

September 20, 2022

Format

local event = Entity:GetEvent("OnItemRemoved")

Description

Triggered event when entity removes the item.

Callback function parameters

Type Name Introduction
Entity entity Entity that the item was removed from
Tray tray Tray object
Item item Item object that was removed

Code Example

local event = Event:GetEvent("OnItemRemoved")
event:Bind(function(entity, tray, item)
    print(entity.. " remove item " .. item .. " into " .. tray)
end)