Garry's Mod Wiki

Revision Difference

Structures/UGCFileInfo#517031

<cat>struct</cat> <structure> <description>Table structure used by <page>steamworks.FileInfo</page>.</description> <fields>{{StructureField|number|id|The Workshop item ID</fields> </structure> {{StructureField|string|title|The title of the Workshop item}}{{StructureField|string|description|The description of the Workshop item}}{{StructureField|number|fileid|The internal File ID of the workshop item, if any}}{{StructureField|number|previewid|The internal File ID of the workshop item preview, if any}}{{StructureField|number|owner|The SteamID64 of the original uploader of the addon}}{{StructureField|number|created|Unix timestamp of when the item was created}}{{StructureField|number|updated|Unix timestamp of when the file was last updated}}{{StructureField|boolean|banned|Whether the file is banned or not}}{{StructureField|string|tags|Comma (,) separated list of tags, may be truncated to some length}}{{StructureField|number|size|File size of the workshop item contents}}{{StructureField|number|previewsize|Filesize of the preview file}}{{StructureField|boolean|installed|If the addon is subscribed, this value represents whether it is installed on the client and its files are accessible, false otherwise.}}{{StructureField|boolean|disabled|If the addon is subscribed, this value represents whether it is disabled on the client, false otherwise.}}{{StructureField|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. }}{{StructureField|string|ownername|<deprecated></deprecated> <fields> <item name="id" type="number">The Workshop item ID</item> <item name="title" type="string">The title of the Workshop item</item> <item name="description" type="string">The description of the Workshop item</item> <item name="fileid" type="number">The internal File ID of the workshop item, if any</item> <item name="previewid" type="number">The internal File ID of the workshop item preview, if any</item> <item name="owner" type="number">The SteamID64 of the original uploader of the addon</item> <item name="created" type="number">Unix timestamp of when the item was created</item> <item name="updated" type="number">Unix timestamp of when the file was last updated</item> <item name="banned" type="boolean">Whether the file is banned or not</item> <item name="tags" type="string">Comma (,) separated list of tags, may be truncated to some length</item> <item name="size" type="number">File size of the workshop item contents</item> <item name="previewsize" type="number">Filesize of the preview file</item> <item name="installed" type="boolean">If the addon is subscribed, this value represents whether it is installed on the client and its files are accessible, false otherwise.</item> <item name="disabled" type="boolean">If the addon is subscribed, this value represents whether it is disabled on the client, false otherwise.</item> <item name="children" type="table">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.</item> <item name="ownername" type="string"><deprecated></deprecated> 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 <page>steamworks.RequestPlayerInfo</page> instead. }}{{StructureField|number|error|If this key is set, no other data will be present in the response. Do not use this field as it will most likely not be updated in time. Use <page>steamworks.RequestPlayerInfo</page> instead.</item> <item name="error" type="number">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 }} }} * -6 means Workshop item ID in response is mismatching the requested file ID</item> </fields> </structure>