Ammo Item Definition
Ammunition item system for the Lilia framework.
name
Purpose
Sets the display name of the ammo item
When Called
During item definition
Example Usage
model
Purpose
Sets the 3D model for the ammo item
When Called
During item definition
Example Usage
width
Purpose
Sets the inventory width of the ammo item
When Called
During item definition
Example Usage
height
Purpose
Sets the inventory height of the ammo item
When Called
During item definition
Example Usage
ammo
Purpose
Sets the ammo type for the item
When Called
During item definition (used in use functions)
Example Usage
category
Purpose
Sets the category for the ammo item
When Called
During item definition
Example Usage
Example Item:
Example Usage
-- Basic item identification
ITEM.name = "Pistol Ammo" -- Display name shown to players
ITEM.model = "models/items/boxsrounds.mdl" -- 3D model for the ammo box
ITEM.width = 1 -- Inventory width (1 slot)
ITEM.height = 1 -- Inventory height (1 slot)
ITEM.ammo = "pistol" -- Ammo type (matches weapon ammo type)
ITEM.category = "itemCatAmmunition" -- Category for inventory sorting