> For the complete documentation index, see [llms.txt](https://docs.menanak47.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.menanak47.com/qbcore/ak47_qb_inventory/event-handlers/server.md).

# Server

### On Remove Item:

```lua
AddEventHandler('ak47_inventory:onRemoveItem', function(source, item, amount, slot, has)
    print(source, item, amount, slot, has)
    -- source
    -- item name
    -- number of item removed
    -- slot number
    -- how many item player has
end)
```

### On Add Item:

```lua
AddEventHandler('ak47_inventory:onAddItem', function(source, item, amount, slot, has)
    print(source, item, amount, slot, has)
    -- source
    -- item name
    -- number of item added
    -- slot number
    -- how many item player has
end)
```
