steamworks/VoteInfo

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 3: Line 3:
  
 
Retrieves vote info of supplied addon.
 
Retrieves vote info of supplied addon.
 
{{NextUpdate|Will become deprecated as {{LibraryFunction|steamworks|FileInfo}} already carries this info.}}
 
 
|Realm=Client and Menu
 
|Realm=Client and Menu
 
|IsClass=No
 
|IsClass=No

Latest revision as of 16:10, 21 January 2020

 steamworks.VoteInfo( )

Contents

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

Use data steamworks.FileInfo instead.

Retrieves vote info of supplied addon.

Arguments

string workshopItemID

The ID of workshop item.

Arguments

function resultCallback

The function to process retrieved data. The first and only argument is a table, containing all the info.

Examples

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
Personal tools
Navigation