Weapons Item Definition
Weapon item system for the Lilia framework.
Overview
Weapon items are equippable weapons that can be given to players. They support ammo tracking, weapon categories, and visual indicators.
PLACEMENT: - Place in: ModuleFolder/items/weapons/ItemHere.lua (for module-specific items) - Place in: SchemaFolder/items/weapons/ItemHere.lua (for schema-specific items)
USAGE: - Weapon items are equipped by using them - They give the weapon specified in ITEM.class - Items remain in inventory when equipped - Can be unequipped to remove weapons - Weapons drop on death if ITEM.DropOnDeath is true
name
📋 Purpose
Sets the display name shown to players
💡 Example Usage
desc
📋 Purpose
Sets the description text shown to players
💡 Example Usage
category
📋 Purpose
Sets the category for inventory sorting and organization
💡 Example Usage
model
📋 Purpose
Sets the 3D model used for the item
💡 Example Usage
class
📋 Purpose
Sets the weapon entity class that gets given to players
💡 Example Usage
width
📋 Purpose
Sets the inventory width in slots
💡 Example Usage
height
📋 Purpose
Sets the inventory height in slots
💡 Example Usage
isWeapon
📋 Purpose
Marks this item as a weapon for special handling
💡 Example Usage
RequiredSkillLevels
📋 Purpose
Sets required skill levels to equip this weapon
💡 Example Usage
DropOnDeath
📋 Purpose
Determines whether weapon drops on player death