GameKit.Leaderboard.SetRange
----------------------------

Sets the numerical score rankings to return from the search.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GameKit](component_GameKit.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "GameKit.Leaderboard.SetRange"; LeaderboardIdentifier; Start; Length ) 

**MBS**( **"GameKit.Leaderboard.SetRange";** /\* Sets the numerical score rankings to return from the search. \*/  
**$LeaderboardIdentifier**; /\* The identifier of the leaderboard. \*/   
**$Start**; /\* The new start value of the range.e.g. 1 \*/   
**$Length**) /\* The new length value of the range.e.g. 10 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LeaderboardIdentifier | The identifier of the leaderboard. |  |
| Start | The new start value of the range. | 1 |
| Length | The new length value of the range. | 10 |

### Result

Returns OK or error.

### Description

Sets the numerical score rankings to return from the search.  
The range property is ignored if the leaderboard request was initialized using the player list option. Otherwise, the range property is used to filter which scores are returned to your game. For example, if you specified a range of \[1,10\], after the search is complete, your game receives the best ten scores. The default range is \[1,25\].  
The minimum index is 1. The maximum length is 100.  
### See also

- [GameKit.Leaderboard.GetRange](GameKitLeaderboardGetRange.md)
- [GameKit.Leaderboard.Image](GameKitLeaderboardImage.md)
- [GameKit.Leaderboard.Loading](GameKitLeaderboardLoading.md)
- [GameKit.Leaderboard.MaxRange](GameKitLeaderboardMaxRange.md)
- [GameKit.Leaderboard.Scores](GameKitLeaderboardScores.md)
- [GameKit.Leaderboard.SetTimeScope](GameKitLeaderboardSetTimeScope.md)
- [GameKit.Leaderboard.Title](GameKitLeaderboardTitle.md)
- [GameKit.LeaderboardSet.Image](GameKitLeaderboardSetImage.md)
- [GameKit.LeaderboardSet.Title](GameKitLeaderboardSetTitle.md)

This function is free to use.

Created 5th November 2018 , last changed 8th November 2018

  
[GameKit.Leaderboard.SetPlayerScope](GameKitLeaderboardSetPlayerScope.md) - [GameKit.Leaderboard.SetTimeScope](GameKitLeaderboardSetTimeScope.md)

[HTML Version](GameKitLeaderboardSetRange.shtml)