spawn_vehicle
Spawn any vanilla or modded vehicle in Project Zomboid, with options to create keys for players or gloveboxes and add trunk items.
Instructions
Spawn any vanilla or modded vehicle (e.g. 'Base.StepVan', 'Base.VanAmbulance', 'Base.PickUpVanLightsPolice',
'Base.SUV', 'Base.OffRoad', or modded RV/bus IDs found via `search_game_catalog`).
- If `key_to_player=False` and `create_key=True`, the vehicle key is placed inside the GloveBox!
- `trunk_items`: optional list of `{"type": "Base.PetrolCan", "count": 2}` placed in the trunk!
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "spawn_vehicle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| offset_x | No | ||
| offset_y | No | ||
| condition | No | survivor | |
| direction | No | E | |
| create_key | No | ||
| trunk_items | No | ||
| fuel_percent | No | ||
| vehicle_type | No | Base.StepVan | |
| key_to_player | No | ||
| target_player | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||