Skip to content

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

    ITEM.name = "Police Uniform"

desc

📋 Purpose

Sets the description of the outfit item

⏰ When Called

During item definition

💡 Example Usage

    ITEM.desc = "A standard police uniform"

category

📋 Purpose

Sets the category for the outfit item

⏰ When Called

During item definition

💡 Example Usage

    ITEM.category = "outfit"

model

📋 Purpose

Sets the 3D model for the outfit item

⏰ When Called

During item definition

💡 Example Usage

    ITEM.model = "models/props_c17/BriefCase001a.mdl"

width

📋 Purpose

Sets the inventory width of the outfit item

⏰ When Called

During item definition

💡 Example Usage

    ITEM.width = 1  -- Takes 1 slot width

height

📋 Purpose

Sets the inventory height of the outfit item

⏰ When Called

During item definition

💡 Example Usage

    ITEM.height = 1  -- Takes 1 slot height

outfitCategory

📋 Purpose

Sets the outfit category for conflict checking

⏰ When Called

During item definition

💡 Example Usage

    ITEM.outfitCategory = "model"  -- Prevents multiple items of same category

pacData

📋 Purpose

Sets the PAC data for the outfit

⏰ When Called

During item definition

💡 Example Usage

    ITEM.pacData = {}  -- PAC attachment data

isOutfit

📋 Purpose

Marks the item as an outfit

⏰ When Called

During item definition

💡 Example Usage

    ITEM.isOutfit = true

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