Skip to main content

entity.get_vehicle_info

Overview

  • Returns detailed info for a vehicle: type, data table ID, color, driver, display name, template, asset, and price.

Metadata

FieldValue
DisplayGet Vehicle Info
Categoryentity
AccessPublic
ScopeB1Standalone
Tags
Aliases

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdyesEntity ID of the vehicle

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
entity_identityIdyesVehicle entity id
vehicle_typestringyesVehicle type enum name
vehicle_dt_idstringyesVehicle data table id
color_idstringnoColor id
driver_identityIdnoDriver entity id
display_namestringnoLocalized display name
vehicle_template_idstringnoVehicle template id
asset_pathstringnoAsset name
priceintnoPrice
locationobjectyesWorld location in meters
location.xfloatyesX
location.yfloatyesY
location.zfloatyesZ

Usage

await inzoi.cli.execute('entity.get_vehicle_info', {
entity_id: 0,
});