Item:
```
quantityBar = 1;
stackedUnit = "pc.";
varQuantityInit = 0;
varQuantityMin = 0;
varQuantityMax = 500;
varStackMax = 100.0;
```
CfgSlots:
```
class Slot_MyFancySlot
{
name = "MyFancySlot";
displayName = "My Fancy Slot";
selection = "MyFancySlot";
ghostIcon = "Sloths";
stackMax = 500;
};
```
Alternative (to support compatibility with all other items):
Adding `varStackMax` to the `Inventory_Base` class:
```
class cfgVehicles
{
class Static;
class Inventory_Base: Static
{
varStackMax = 100.0;
};
};
```