FivePD API
Models

VehicleData

Represents a vehicle history.

This model represents the database table fivepd_vehicle_data. When modifying any properties of this model, ensure that you have saved the changes using the DatabaseContext.

Methods

HasDocument

Checks if the vehicle has a document.

Parameters

NameTypeDescription
vehicleDocumentTypeVehicleDocumentTypeThe document type to check.

Returns

NameType
boolTrue if the vehicle has the document, false otherwise.

GetDocument

Gets the document of the specified type.

Parameters

NameTypeDescription
vehicleDocumentTypeVehicleDocumentTypeThe document type to get.

Returns

NameType
VehicleDocumentThe license.

Properties

Id

Gets or sets the identifier.

Type: int

PedData

Gets or sets the identifier of the vehicle the ped is owning.

Type: PedData

LicensePlate

Gets or sets the vehicle's license plate.

Type: string

Color

Gets or sets the vehicle's color.

Type: string

Brand

Gets or sets the vehicle's brand.

Type: string

Items

Gets or sets the items of the vehicle.

Type: List<Item>

Documents

Gets or sets the documents of the vehicle.

Type: IList<VehicleDocument>