Skip to main content

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

FieldValue
DisplayList Vehicles
Categoryvehicle
AccessPublic
ScopeB2Authority
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
vehicle_typenameno—Filter by EB1VehicleType name: Car, Motorcycle, Bicycle or Ship. Omit for all

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
countintyesNumber of rows returned
vehiclesarray<object>yesVehicle data table rows
vehicles[].idstringyesVehicle data table row name, the value vehicle.grant takes
vehicles[].vehicle_typestringyesEB1VehicleType name
vehicles[].priceintyesShop price; not charged by vehicle.grant
vehicles[].purchasableboolyesWhether PurchasableLevel is set, i.e. the shop offers it
vehicles[].required_skill_levelintyesDriving skill the shop requires

Usage

await inzoi.cli.execute('vehicle.list_purchasable', {
vehicle_type: '', // optional
});