> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove item from glovebox

> Removes items from a vehicle glovebox using only the vehicle plate, automatically resolving the full inventory ID.

Removes items from a vehicle glovebox using only the vehicle plate, automatically resolving the full inventory ID.

<CodeGroup>
  ```lua Export theme={null}
  exports['jaksam_inventory']:removeItemFromGlovebox(plate, itemName, amount, metadata, slotId)
  ```

  ```lua Example theme={null}
  -- Remove documents from glovebox
  local plate = GetVehicleNumberPlateText(vehicle)
  local success = exports['jaksam_inventory']:removeItemFromGlovebox(plate, 'documents', 1)

  if not success then
      print("Document not found in glovebox")
  end
  ```
</CodeGroup>

### Parameters

| Name       | Data Type | Description                                        |
| ---------- | --------- | -------------------------------------------------- |
| `plate`    | string    | The vehicle license plate                          |
| `itemName` | string    | The name of the item to remove                     |
| `amount`   | number    | How many items to remove                           |
| `metadata` | table     | Metadata to match for removal (optional filtering) |
| `slotId`   | number    | Specific slot to remove from                       |

### Return value

| Name               | Data Type | Description                              |
| ------------------ | --------- | ---------------------------------------- |
| `success`          | boolean   | True if items were removed successfully  |
| `resultCode`       | string    | Error message if the operation failed    |
| `notificationType` | string    | Type of notification to show to the user |

### Notes

Vehicle must exist (owned vehicle in database or NPC vehicle currently spawned). Returns false with "vehicle\_not\_found" if vehicle doesn't exist.


## Related topics

- [Server](/jaksam-inventory/functions/server/index.md)
- [Add item to glovebox](/jaksam-inventory/functions/server/add-item-to-glovebox.md)
- [Remove item](/jaksam-inventory/functions/server/remove-item.md)
- [Remove item from trunk](/jaksam-inventory/functions/server/remove-item-from-trunk.md)
- [Client](/jaksam-inventory/functions/client/index.md)
