GameKit.Player.DisplayName
--------------------------

Queries name to display.

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

MBS( "GameKit.Player.DisplayName"; PlayerID ) 

**MBS**( **"GameKit.Player.DisplayName";** /\* Queries name to display. \*/  
**$PlayerID**) /\* The player identifier.e.g. $player \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PlayerID | The player identifier. | $player |

### Result

Returns name or error.

### Description

Queries name to display.  
Returns the string to display for the player.  
  
The display name for a player depends on whether the player is a friend of the local player authenticated on the device. If the player is a friend of the local player, then the display name is the actual name of the player. If the player is not a friend, then the display name is the player’s alias.  
This function is free to use.

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

  
[GameKit.Player.Alias](GameKitPlayerAlias.md) - [GameKit.Player.GuestIdentifier](GameKitPlayerGuestIdentifier.md)

[HTML Version](GameKitPlayerDisplayName.shtml)