# Sandbox.Network.LobbyConfig.MaxPlayers

```csharp
int MaxPlayers { get; set; }
```

The maximum amount of players this lobby can hold. By default, this will be
the Max Players set in the current Game Package's project settings.

Declared in [Sandbox.Network.LobbyConfig](/api/Sandbox.Network.LobbyConfig).
Assembly: `Sandbox.Engine`.
