Garry's Mod Wiki

steamworks.FileInfo

  steamworks.FileInfo( string workshopItemID, function resultCallback, boolean extraInfo = false )

Description

Retrieves info about supplied Steam Workshop addon.

Arguments

1 string workshopItemID
The ID of Steam Workshop item.
2 function resultCallback
The function to process retrieved data.

Function argument(s):
1 table data - The data about the item, if the request succeeded, nil otherwise. See UGCFileInfo structure.
3 boolean extraInfo = false
If set, the function will retrieve more info about the workshop item, such as longer description and additional preview images. Only use this if absolutely necessary.

This was recently added in version (2026.06.25). It might only be available on the Dev Branch right now.

Example

Retrieves all info of the Wiremod Steam Workshop addon.

steamworks.FileInfo( 160250458, function( result ) PrintTable( result ) end)
Output:
banned = false children = {} created = 1373845248 description = "A collection of entities connectable by data wires..." disabled = false fileid = 763849701485673437 id = 160250458 installed = false owner = 76561198096613988 ownername = WireTeam previewid = 597008945885476119 previewsize = 36221 size = 7375691 tags = Addon,tool,Build,Fun title = Wiremod updated = 1571560576 score = 0.92941749095917 total = 49119 up = 45695 down = 3424