> 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-warriorslib-en/warriorslib-functions/warriorslib.getresourcecountinarea.md).

# WarriorsLib.GetResourceCountInArea

## `WarriorsLib.GetResourceCountInArea(`x, y, radius\[, resourceType]`)` <a href="#warriorslib.getresourcecountinarea-x-y-radius-resourcetype" id="warriorslib.getresourcecountinarea-x-y-radius-resourcetype"></a>

`only available since version 1.4`

Returns the amount of ressources in a given area. if a ressourceType is ommitted, the number will only reflect this ressourcetype.&#x20;

#### return value <a href="#rueckgabewert" id="rueckgabewert"></a>

count of ressources

```
coming soon
```
