Type Function Return value none Revision Release 2024.3703 Keywords Google Play Games Services, game network, gpgs, leaderboards, loadScores See also gpgs.leaderboards gpgs.*
Retrieves scores from a specified leaderboard.
gpgs.leaderboards.loadScores( params )
Table. Contains parameters for the call — see the next section for details.
The params
table contains parameters for the call.
String. Leaderboard ID from which to load scores.
String. One of the following values:
"top"
— the top scores (default)."single"
— the current player's score."centered"
— scores around the current player's score.Boolean. If true
, loads only scores for the current player's friends.
Number. Number of scores to load. The maximum and default is 25
.
String. One of the following values:
"all time"
— all scores (default)."weekly"
— scores from the week."daily"
— scores from the day.Boolean. If true
, the data will be retrieved fresh, not from a cache.