Workshop¶
Workshop downloader helpers for Lilia server content discovery, synchronization, download prompts, and clientside addon mounting.
Overview
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.