Garry's Mod Wiki

Revision Difference

steamworks.VoteInfo#528451

<function name="VoteInfo" parent="steamworks" type="libraryfunc"> <description> <deprecated>Use data <page>steamworks.FileInfo</page> instead.</deprecated> Retrieves vote info of supplied addon. </description> <realm>Client and Menu</realm> <args> <arg name="workshopItemID" type="string">The ID of workshop item.</arg> <arg name="resultCallback" type="function">The function to process retrieved data. The first and only argument is a table, containing all the info.</arg> </args> </function> <example> <description>Retrieves vote info of Gm_construct_Beta Steam Workshop addon.</description> <code>steamworks.VoteInfo( 21197, function( result ) PrintTable( result ) end)</code> <outputfixedwidth>Fixed width</outputfixedwidth>⤶ <output> ```⤶ score = 0.97182178497314 total = 2952 down = 36 up = 2916 ```⤶ </output> </example>