---
title: playersToInvite
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkmatchrequest/playerstoinvite
---

# playersToInvite

A list of player identifiers for players to invite to the match.

## Declaration

```swift
var playersToInvite: [String]? { get set }
```

## Discussion

Discussion The property holds an array of NSString objects, each of which is an identifier for a player on Game Center. If the value of the property is non-nil, when you use the request to create a match, Game Center invites those players to the match. No automatching is done and the GKMatchRequest maxPlayers and minPlayers properties are ignored. If nil (the default), no players are invited. The exact behavior for matchmaking depends on the kind of match being created and the class used to create the match.

## See Also

### Deprecated methods and properties

- [inviteeResponseHandler](gamekit/gkmatchrequest/inviteeresponsehandler.md)
- [GKInviteeResponse](gamekit/gkinviteeresponse.md)
- [restrictToAutomatch](gamekit/gkmatchrequest/restricttoautomatch.md)
