GameKit.SetDefaultLeaderboardIdentifier
---------------------------------------

Sets the default leaderboard for the current game.

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

MBS( "GameKit.SetDefaultLeaderboardIdentifier"; LeaderboardIdentifier ) 

**MBS**( **"GameKit.SetDefaultLeaderboardIdentifier";** /\* Sets the default leaderboard for the current game. \*/  
**$LeaderboardIdentifier**) /\* The new default leaderboard identifier. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LeaderboardIdentifier | The new default leaderboard identifier. |  |

### Result

Returns OK or error.

### Description

Sets the default leaderboard for the current game.  
The default leaderboard is configured in App Store Connect as part of configuring your game’s leaderboards. All players normally start with this leaderboard as the default leaderboard. Calling this method changes the default leaderboard only for the local player.  
### See also

- [GameKit.DefaultLeaderboardIdentifier](GameKitDefaultLeaderboardIdentifier.md)
- [GameKit.Score.LeaderboardIdentifier](GameKitScoreLeaderboardIdentifier.md)

This function is free to use.

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

  
[GameKit.SelectChallengeablePlayers](GameKitSelectChallengeablePlayers.md) - [GameKit.SetPlayerDidChangeScriptTrigger](GameKitSetPlayerDidChangeScriptTrigger.md)

[HTML Version](GameKitSetDefaultLeaderboardIdentifier.shtml)