# SU.Buildings.RecruitVehicle

## SU.Buildings.RecruitVehicle(buildingID, vehicleType, amount)

Gibt bei dem mit der ID angegebenen Gebäude Fahrzeuge/Schiffe in Auftrag.

#### Parameter

* `buildingID`: ID des Gebäudes
* `vehicleType`: [Vehicles](/s4-lua-api-de/api-enums/vehicles.md)
* `amount [0-100]`: Anzahl der zu bauenden Fahrzeuge/Schiffe (100=unendlich)

#### Rückgabewert

* 1: erfolgreicher Aufruf (dies bedeutet nur, dass die Parameter valide waren und nicht zwingend, dass der Auftrag ausgeführt wird, z.B. wenn das Gebäude keine Fahrzeuge/Schiffe produzieren kann!)
* 0: sonst / Fehler

#### Beispiel

```lua
local success = SU.Buildings.RecruitVehicle(buildingID, Vehicles.FERRY, amount)
```


---

# 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/su-library-functions/su.buildings/su.buildings.recruitvehicle.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.
