> 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-de/warriorslib-functions/warriorslib.storegood.md).

# WarriorsLib.StoreGood

## `WarriorsLib.StoreGood(buildingID, goodtype, enable, player)`

Gibt an, welche Waren ein Lager lagern soll.

`enable`

Wenn TRUE, beginnt das Gebäude, Waren des angegebenen Typs zu lagern. Wenn FALSE, wird es aufhören, sie zu speichern.

#### Rückgabewert

* **Ab Version 1.5.0**: success: boolean (0 oder 1)
* Davor: none

```lua
Buildings.AddBuilding(118, 58, 3, Buildings.STORAGEAREA)
WarriorsLib.StoreGood (Buildings.GetFirstBuilding(3, Buildings.STORAGEAREA), Goods.GOLDBAR, 1, 3)
```
