> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/su-library-functions/su.game/su.game.getnumberofteams.md).

# SU.Game.GetNumberOfTeams

## SU.Game.GetNumberOfTeams()

Gibt die Anzahl an Teams zurück.

**Achtung: funktioniert NICHT in "new\_game"!**\
⇒ stattdessen **"**&#x45;vents.FIRST\_TICK\_OF\_NEW\_GAME" o.ä. (siehe [Broken mention](broken://spaces/auUjVOZHHg4G6b8lVuXs/pages/qLOzOsgkiRbVIll0itCg))

#### Rückgabewert

* Anzahl an Teams

#### Beispiel

```lua
local numTeams = SU.Game.GetNumberOfTeams()
```
