Garry's Mod Wiki

Revision Difference

Structures/UGCFileInfo#516972

<cat>struct</cat> {{Structure |Description=Table structure used by <page>steamworks.FileInfo</page>. |Fields={{StructureField|number|id|The Workshop item ID}}{{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. <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> 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. 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 }} }}