Garry's Mod Wiki

UGCFileInfo

Description

Table structure used by steamworks.FileInfo.

Members

number id
The Workshop item ID
string title
The title of the Workshop item
string description
The description of the Workshop item
number fileid
The internal File ID of the workshop item, if any
number previewid
The internal File ID of the workshop item preview, if any
string previewurl
A URL to the preview image of the workshop item
number owner
The SteamID64 of the original uploader of the addon
number created
Unix timestamp of when the item was created
number updated
Unix timestamp of when the file was last updated
boolean banned
Whether the file is banned or not
string tags
Comma (,) separated list of tags, may be truncated to some length
number size
File size of the workshop item contents
number previewsize
Filesize of the preview file
boolean installed
If the addon is subscribed, this value represents whether it is installed on the client and its files are accessible, false otherwise.
boolean disabled
If the addon is subscribed, this value represents whether it is disabled on the client, false otherwise.
table children
A list of child Workshop Items for this item.

For collections this will be sub-collections, for workshop items this will be the items they depend on.

string ownername
We advise against using this. It may be changed or removed in a future update.

The "nice" name of the Uploader, or "Unnammed Player" if we failed to get the data for some reason.

Do not use this field as it will most likely not be updated in time. Use steamworks.RequestPlayerInfo instead.

number error
If this key is set, no other data will be present in the response.

Values above 0 represent Steam Error codes, values below 0 mean the following:

  • -1 means Failed to create query
  • -2 means Failed to send query
  • -3 means Received 0 or more than 1 result
  • -4 means Failed to get item data from the response
  • -5 means Workshop item ID in the response is invalid
  • -6 means Workshop item ID in response is mismatching the requested file ID
number up
Number of "up" votes for this item.
number down
Number of "down" votes for this item.
number total
Number of total votes (up and down) for this item. This is NOT up - down.
number score
The up down vote ratio for this item, i.e. 1 is when every vote is up, 0.5 is when half of the total votes are the up votes, etc.