# Sandbox.MapSettings

How the menu launches a game with maps. Stored in the project meta under "MapSettings".

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`

## Constructors

- [`MapSettings`](/api/Sandbox.MapSettings/.ctor)

## Properties

- [`DefaultMap`](/api/Sandbox.MapSettings/DefaultMap): The map package selected by default, e.g. facepunch.flatgrass. Leave empty to make players choose.
- [`MapTarget`](/api/Sandbox.MapSettings/MapTarget): Leave empty to show maps made for this game. Or list the games whose maps you can load, e.g. facepunch.sandbox, facepunch.walker - or * for all maps.
- [`NeedsMap`](/api/Sandbox.MapSettings/NeedsMap): Players have to choose a map before they can play.
- [`ShowChangeMap`](/api/Sandbox.MapSettings/ShowChangeMap): Show a Change Map option in the escape menu. Relaunches the game with the new map.
- [`UseCreateGameModal`](/api/Sandbox.MapSettings/UseCreateGameModal): When pressing play, show a popup to configure max players, lobby privacy and the map.
