> ## 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 trunk

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

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

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

  ```lua Example theme={null}
  -- Remove 3 water bottles from trunk
  local plate = GetVehicleNumberPlateText(vehicle)
  local success = exports['jaksam_inventory']:removeItemFromTrunk(plate, 'water', 3)

  -- Remove from specific slot
  local success = exports['jaksam_inventory']:removeItemFromTrunk("ABC 123", 'weapon', 1, nil, 5)
  ```
</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 trunk](/jaksam-inventory/functions/server/add-item-to-trunk.md)
- [Remove item](/jaksam-inventory/functions/server/remove-item.md)
- [Remove item from glovebox](/jaksam-inventory/functions/server/remove-item-from-glovebox.md)
- [Client](/jaksam-inventory/functions/client/index.md)
