> 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/library-functions/goods/goods.getamountinarea.md).

# Goods.GetAmountInArea

## `Goods.GetAmountInArea(Spieler, Ware, x, y, Radius)`

Ermittelt die Menge einer Ware in einem bestimmten Gebiet.

`Radius`: > 0

`Spieler = -1`: egal welcher Spieler

#### Rückgabewert

Menge

#### Beispiel

```lua
Goods.GetAmountInArea(1,Goods.SWORD,395,246,73)
```
