steamworks.VoteInfo

From Garry's Mod
Jump to: navigation, search
 steamworks.VoteInfo( )

Contents

Description

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:

A table printed into console:
score = 0.97182178497314
total = 2952
down = 36
up = 2916
Personal tools
Navigation