entity.get_vehicle_info
Overview
- Returns detailed info for a vehicle: type, data table ID, color, driver, display name, template, asset, and price.
Metadata
| Field | Value |
|---|---|
| Display | Get Vehicle Info |
| Category | entity |
| Access | Public |
| Scope | B1Standalone |
| Tags | — |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | yes | — | Entity ID of the vehicle |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
entity_id | entityId | yes | Vehicle entity id |
vehicle_type | string | yes | Vehicle type enum name |
vehicle_dt_id | string | yes | Vehicle data table id |
color_id | string | no | Color id |
driver_id | entityId | no | Driver entity id |
display_name | string | no | Localized display name |
vehicle_template_id | string | no | Vehicle template id |
asset_path | string | no | Asset name |
price | int | no | Price |
location | object | yes | World location in meters |
location.x | float | yes | X |
location.y | float | yes | Y |
location.z | float | yes | Z |
Usage
await inzoi.cli.execute('entity.get_vehicle_info', {
entity_id: 0,
});