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. The first and only argument is a table, containing all the info.

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

Page Links


Special Pages


Wikis

?

Render Time: 30ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 8
Render Body 0
Render Sidebar 12