Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api-reference/inventory.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1527,21 +1527,21 @@ end)
Listen to when an item is removed from player inventory
```lua OnItemRemoved
AddEventHandler("vorp_inventory:Server:OnItemRemoved",function(data,source)
-- data.count , data.name , no metadata is passed here
-- data.count , data.name , data.metadata
end)
```

Listen to when an item is taken from custom inventory
```lua OnItemTakenFromCustomInventory
AddEventHandler("vorp_inventory:Server:OnItemTakenFromCustomInventory", function(item, invId, source)
-- item.amount , item.name, item.id
-- item.amount , item.name, item.id, item.metadata
end)
```

Listen to when an item is moved to custom inventory
```lua OnItemMovedToCustomInventory
AddEventHandler("vorp_inventory:Server:OnItemMovedToCustomInventory", function(item, invId, source)
-- item.amount , item.name, item.id
-- item.amount , item.name, item.id, item.metadata
end)
```

Expand Down