Skip to content

URL Item Definition

URL item system for the Lilia framework.


name

Purpose

Sets the display name of the URL item

When Called

During item definition

Example Usage

ITEM.name = "Website Link"

desc

Purpose

Sets the description of the URL item

When Called

During item definition

Example Usage

ITEM.desc = "A link to an external website"

model

Purpose

Sets the 3D model for the URL item

When Called

During item definition

Example Usage

ITEM.model = "models/props_interiors/pot01a.mdl"

url

Purpose

Sets the URL to open when the item is used

When Called

During item definition (used in use function)

Example Usage

ITEM.url = "https://example.com"

Example Item:

Example Usage

-- Basic item identification
ITEM.name = "Website Link"                        -- Display name shown to players
ITEM.desc = "A link to an external website"       -- Description text
ITEM.model = "models/props_interiors/pot01a.mdl"  -- 3D model for the item
ITEM.url = "https://example.com"                  -- URL to open when used