# Tutorial.DisableExcept

## `Tutorial.DisableExcept([control, ...])`

Schaltet alle Knöpfe aus, so dass man z.B. nicht mehr die Gebäude in der Gebäudeauswahl auswählen kann, oder Soldaten in der Kaserne erstellen kann. Alle Parameter sind Knöpfe die nicht davon betroffen sind. Es gibt ca. 1700 Controls, die hier nicht alle passen aufzulisten. Stattdessen gehen Sie bitte auf Controls->Numbers

#### Rückgabewert

none

#### Beispiel

```lua
-- Schaltet alle Controls ab
Tutorial.DisableExcept()
-- Schaltet alle Controls ab, außer die vier Knöpfe unter der Minimap (Gebäude, Siedler, Produktioneinstellungen, Statistiken)
Tutorial.DisableExcept
(
        Control.DLG_MINIMAP_CMD_BUILD,
        Control.DLG_MINIMAP_CMD_FIGURES,
        Control.DLG_MINIMAP_CMD_PRODUCTION,
        Control.DLG_MINIMAP_CMD_STATISTICS     
)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.settlers-united.com/s4-lua-api-de/library-functions/tutorial/tutorial.disableexcept.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
