Garry's Mod Wiki

steamworks.VoteInfo

  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