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
| Name | Type | Description |
|---|---|---|
| vehicleDocumentType | VehicleDocumentType | The document type to check. |
Returns
| Name | Type |
|---|---|
| bool | True if the vehicle has the document, false otherwise. |
GetDocument
Gets the document of the specified type.
Parameters
| Name | Type | Description |
|---|---|---|
| vehicleDocumentType | VehicleDocumentType | The document type to get. |
Returns
| Name | Type |
|---|---|
| VehicleDocument | The 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>