vehicle.list_purchasable
Overview
- Lists vehicle data table rows with their type, price and whether the shop actually offers them. Rows whose Type is Invalid are omitted entirely - those are unfinished test rows, and granting one leaves every type-switched behaviour (riding posture, lane entry) with nowhere to go. purchasable false marks the derived _Pawn rows used for placing NPC vehicles: they are real rows and can be granted, but they are not in the shop, so a caller picking a vehicle for a Zoi wants purchasable true.
Metadata
| Field | Value |
|---|---|
| Display | List Vehicles |
| Category | vehicle |
| Access | Public |
| Scope | B2Authority |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| vehicle_type | name | no | — | Filter by EB1VehicleType name: Car, Motorcycle, Bicycle or Ship. Omit for all |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
count | int | yes | Number of rows returned |
vehicles | array<object> | yes | Vehicle data table rows |
vehicles[].id | string | yes | Vehicle data table row name, the value vehicle.grant takes |
vehicles[].vehicle_type | string | yes | EB1VehicleType name |
vehicles[].price | int | yes | Shop price; not charged by vehicle.grant |
vehicles[].purchasable | bool | yes | Whether PurchasableLevel is set, i.e. the shop offers it |
vehicles[].required_skill_level | int | yes | Driving skill the shop requires |
Usage
await inzoi.cli.execute('vehicle.list_purchasable', {
vehicle_type: '', // optional
});