> 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/multi-framework/ak47_inventory/event-handlers/client.md).

# Client

### 📦 Item Events

Events triggered on the client when their local inventory items change.

#### On Remove Item

Triggered when the local player successfully removes an item from their inventory.

```lua
RegisterNetEvent('ak47_inventory:onRemoveItem', function(item, amount, slot, has)
    -- Your code here
end)
```

**Parameters:**

* item: `string`
  * The name of the item removed
* amount: `number`
  * The quantity of the item that was removed
* slot: `number`
  * The slot index the item was removed from
* has: `number`
  * The total amount of this item the player still has after removal

#### On Add Item

Triggered when the local player successfully receives an item into their inventory.

```lua
RegisterNetEvent('ak47_inventory:onAddItem', function(item, amount, slot, has)
    -- Your code here
end)
```

**Parameters:**

* item: `string`
  * The name of the item added
* amount: `number`
  * The quantity of the item that was added
* slot: `number`
  * The slot index the item was added to
* has: `number`
  * The total amount of this item the player now has

### ⚔️ Weapon Events

Events related to weapon interactions on the client side.

#### On Equip Weapon

Triggered when the local player equips a weapon.

```lua
RegisterNetEvent('ak47_inventory:onEquipWeapon', function(currentWeapon)
    -- Your code here
end)
```

**Parameters:**

* currentWeapon: `table`
  * The item data table of the equipped weapon

#### On UnEquip Weapon

Triggered when the local player unequips their currently held weapon.

```lua
RegisterNetEvent('ak47_inventory:onUnEquipWeapon', function(currentWeapon)
    -- Your code here
end)
```

**Parameters:**

* currentWeapon: `table`
  * The item data table of the weapon that was unequipped

### 👕 Clothing Events

Events triggered when clothing items (masks, helmets, etc.) are added or removed.

#### On Add Clothing

Triggered when the local player puts on a clothing item.

```lua
RegisterNetEvent('ak47_inventory:onAddClothing', function(clothingType, skinData, toOtherInventory)
    -- Your code here
end)
```

**Parameters:**

* clothingType: `string`
  * The type of clothing equipped (e.g., `'mask'`, `'helmet'`)
* skinData: `table`
  * The metadata associated with the clothing item
* toOtherInventory: `boolean`
  * `true` if this clothing item was transferred from another inventory

#### On Remove Clothing

Triggered when the local player takes off a clothing item.

```lua
RegisterNetEvent('ak47_inventory:onRemoveClothing', function(clothingType, toOtherInventory)
    -- Your code here
end)
```

**Parameters:**

* clothingType: `string`
  * The type of clothing unequipped (e.g., `'mask'`, `'helmet'`)
* toOtherInventory: `boolean`
  * `true` if this clothing item was transferred to another inventory
