Skip to main content

vehicle.get_owned

Overview

  • Reports which vehicle a Zoi owns and which one it is currently in. Those are separate facts and are reported separately: owned is what is registered to the Zoi and may be despawned in a garage, riding is the vehicle it is physically inside, which can be someone else's car. has_owned false with is_riding true is a passenger in another household's vehicle. All positions are RAW UNREAL WORLD CENTIMETRES, the same frame as automation.log_behaviour_trace's zoi_state.pos, so a distance between the two is a plain subtraction. This differs from entity.get_vehicle_info, which divides by 100 for console readability.

Metadata

FieldValue
DisplayGet Owned Vehicle
Categoryvehicle
AccessPublic
ScopeB2Authority
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdno—Character entity ID (default: possessed)

Returns

  • Freeform result (shape is not fixed).

{ entity_id, has_owned, is_riding, is_driver, owned{entity_id,vehicle_dt_id,vehicle_type,color_id,owner_entity_id,driver_entity_id,pos{x,y,z},rot_yaw,rot_pitch,rot_roll,speed,lane_index}, riding } - owned and riding are null when absent

Usage

await inzoi.cli.execute('vehicle.get_owned', {
entity_id: 0, // optional
});