Outfit Item Definition
Outfit item system for the Lilia framework.
name
📋 Purpose
Sets the display name of the outfit item
⏰ When Called
During item definition
💡 Example Usage
desc
📋 Purpose
Sets the description of the outfit item
⏰ When Called
During item definition
💡 Example Usage
category
📋 Purpose
Sets the category for the outfit item
⏰ When Called
During item definition
💡 Example Usage
model
📋 Purpose
Sets the 3D model for the outfit item
⏰ When Called
During item definition
💡 Example Usage
width
📋 Purpose
Sets the inventory width of the outfit item
⏰ When Called
During item definition
💡 Example Usage
height
📋 Purpose
Sets the inventory height of the outfit item
⏰ When Called
During item definition
💡 Example Usage
outfitCategory
📋 Purpose
Sets the outfit category for conflict checking
⏰ When Called
During item definition
💡 Example Usage
pacData
📋 Purpose
Sets the PAC data for the outfit
⏰ When Called
During item definition
💡 Example Usage
isOutfit
📋 Purpose
Marks the item as an outfit
⏰ When Called
During item definition
💡 Example Usage
Complete Examples
The following examples demonstrate how to use all the properties and methods together to create complete definitions.
Complete Item Example
Below is a comprehensive example showing how to define a complete item with all available properties and methods.
ITEM.name = "Police Uniform"
ITEM.desc = "A standard police uniform"
ITEM.category = "outfit"
ITEM.model = "models/props_c17/BriefCase001a.mdl"
ITEM.width = 1 -- Takes 1 slot width
ITEM.height = 1 -- Takes 1 slot height
ITEM.outfitCategory = "model" -- Prevents multiple items of same category
ITEM.pacData = {} -- PAC attachment data
ITEM.isOutfit = true
-- Basic item identification
ITEM.name = "Police Uniform" -- Display name shown to players
ITEM.desc = "A standard police uniform" -- Description text
ITEM.category = "outfit" -- Category for inventory sorting
ITEM.model = "models/props_c17/BriefCase001a.mdl" -- 3D model for the item
ITEM.width = 1 -- Inventory width (1 slot)
ITEM.height = 1 -- Inventory height (1 slot)
ITEM.outfitCategory = "model" -- Outfit category for conflict checking