Skip to content

Workshop

Workshop downloader helpers for Lilia server content discovery, synchronization, download prompts, and clientside addon mounting.


Overview

The workshop library centralizes Workshop collection under `lia.workshop`. It registers server-required Workshop IDs, gathers IDs from mounted addons and module WorkshopContent entries, caches the resulting list for clients, sends workshop metadata to joining players, detects missing client content, requests missing downloads, and displays available server Workshop addons in the information menu.

lia.workshop.addWorkshop(id)View Source

Purpose

Registers a Steam Workshop addon ID as required server content.

Realm

Server

Parameters

string|number id The Steam Workshop file ID to register.


lia.workshop.gather()View Source

Purpose

Collects all known server Workshop IDs from registered resources, mounted addons, and loaded module WorkshopContent definitions.

Realm

Server

Returns

table A table keyed by Workshop ID strings with true values for each required addon.


lia.workshop.send(ply)View Source

Purpose

Sends the cached Workshop ID table to a player through the Workshop downloader start network message.

Realm

Server

Parameters

Player ply The player receiving the cached Workshop content list.


lia.workshop.hasContentToDownload()View Source

Purpose

Checks whether the client is missing any server-required Workshop content that is not already mounted locally.

Realm

Client

Returns

boolean True when at least one required Workshop addon still needs to be downloaded or mounted, otherwise false.


lia.workshop.mountContent()View Source

Purpose

Prompts the client to download and mount missing server-required Workshop content after calculating the total download size.

Realm

Client