Garry's Mod Wiki

Garry's Mod Wiki

  steamworks.VoteInfo( string workshopItemID, function resultCallback )

Description

We advise against using this. It may be changed or removed in a future update. Use data steamworks.FileInfo instead.

Retrieves vote info of supplied addon.

Arguments

1 string workshopItemID
The ID of workshop item.
2 function resultCallback
The function to process retrieved data.
Function argument(s):
1 table data - The vote information. See UGCFileInfo structure.

Example

Retrieves vote info of Gm_construct_Beta Steam Workshop addon.

steamworks.VoteInfo( 21197, function( result ) PrintTable( result ) end)
Output:
score = 0.97182178497314 total = 2952 down = 36 up = 2916

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...