Skip to content
On this page

AthenaShared.interfaces.vehicleOwned.OwnedVehicle ​

shared/interfaces/vehicleOwned.OwnedVehicle

Used to describe an owned vehicle.

Interface

OwnedVehicle

Hierarchy ​

Properties ​

_id ​

• Optional _id: unknown

The vehicle identifier for the database. Also used to save to the database.

Inherited from ​

BaseVehicle._id

Defined in ​

shared/interfaces/vehicleBase.ts:16


damage ​

• Optional damage: VehicleDamage

Damage to store / apply on a vehicle

Defined in ​

shared/interfaces/vehicleOwned.ts:88


dimension ​

• dimension: number

Used to control what dimension this vehicle should spawn in / be found in

Inherited from ​

BaseVehicle.dimension

Defined in ​

shared/interfaces/vehicleBase.ts:61


doNotDespawn ​

• Optional doNotDespawn: boolean

Flag this value to prevent this vehicle from ever being despawned

Inherited from ​

BaseVehicle.doNotDespawn

Defined in ​

shared/interfaces/vehicleBase.ts:110


extras ​

• Optional extras: default[]

Damage to store / apply on a vehicle

Defined in ​

shared/interfaces/vehicleOwned.ts:96


fuel ​

• fuel: number

The fuel level for this vehicle.

Inherited from ​

BaseVehicle.fuel

Defined in ​

shared/interfaces/vehicleBase.ts:93


garageInfo ​

• Optional garageInfo: number

Set this value to an indexable garage. If this value is set it means it will not be spawned when a player joins.

Inherited from ​

BaseVehicle.garageInfo

Defined in ​

shared/interfaces/vehicleBase.ts:102


groups ​

• Optional groups: Object

A key value pair of a group, and what permissions they have in that group.

Memberof

BaseVehicle

Index signature ​

â–ª [key: string]: string[]

Inherited from ​

BaseVehicle.groups

Defined in ​

shared/interfaces/vehicleBase.ts:126


id ​

• Optional id: number

The vehicle id for lookups.

Inherited from ​

BaseVehicle.id

Defined in ​

shared/interfaces/vehicleBase.ts:23


keys ​

• keys: string[]

A list of character ids that have access to this vehicle

Inherited from ​

BaseVehicle.keys

Defined in ​

shared/interfaces/vehicleBase.ts:77


lastUsed ​

• Optional lastUsed: number

The last known timestamp when this vehicle was used.

Inherited from ​

BaseVehicle.lastUsed

Defined in ​

shared/interfaces/vehicleBase.ts:118


model ​

• model: string

The model of this vehicle.

Inherited from ​

BaseVehicle.model

Defined in ​

shared/interfaces/vehicleBase.ts:40


owner ​

• owner: string

The player who is the owner of this vehicle. Corresponds with character._id or null if it belongs to anything else Obviously permissions and keys should be used if no owner is set.

Inherited from ​

BaseVehicle.owner

Defined in ​

shared/interfaces/vehicleBase.ts:33


permissions ​

• permissions: string[]

A list of character permissions that have access to this vehicle

Inherited from ​

BaseVehicle.permissions

Defined in ​

shared/interfaces/vehicleBase.ts:85


plate ​

• plate: string

A unique identifier for this specific vehicle. Usually automatically generated.

Inherited from ​

BaseVehicle.plate

Defined in ​

shared/interfaces/vehicleBase.ts:69


pos ​

• pos: IVector3

The last position where this vehicle was last left.

Inherited from ​

BaseVehicle.pos

Defined in ​

shared/interfaces/vehicleBase.ts:47


rot ​

• rot: IVector3

The last rotation where this vehicle was last left.

Inherited from ​

BaseVehicle.rot

Defined in ​

shared/interfaces/vehicleBase.ts:54


state ​

• Optional state: VehicleState | Partial<VehicleState>

Data that matches the alt.Vehicle API setters

Defined in ​

shared/interfaces/vehicleOwned.ts:80


tuning ​

• Optional tuning: IVehicleTuning | Partial<IVehicleTuning>

Vehicle Tuning Interface

Defined in ​

shared/interfaces/vehicleOwned.ts:72

Created by Stuyk | Est. 2020