Ammo Item Definition
Ammunition item system for the Lilia framework.
Overview
Ammo items are stackable consumables that provide ammunition for weapons. They can be loaded in different quantities and have visual quantity indicators.
PLACEMENT: - Place in: ModuleFolder/items/ammo/ItemHere.lua (for module-specific items) - Place in: SchemaFolder/items/ammo/ItemHere.lua (for schema-specific items)
USAGE: - Ammo items are consumed when used - They give ammunition based on the ITEM.ammo type - Ammo type must match weapon's ammo type - Can be used to reload equipped weapons - Items are removed from inventory after use
name
📋 Purpose
Sets the display name shown to players
💡 Example Usage
model
📋 Purpose
Sets the 3D model used for the item
💡 Example Usage
width
📋 Purpose
Sets the inventory width in slots
💡 Example Usage
height
📋 Purpose
Sets the inventory height in slots
💡 Example Usage
ammo
📋 Purpose
Sets the ammunition type that matches weapon ammo type
💡 Example Usage
category
📋 Purpose
Sets the category for inventory sorting