Skip to main content

VehicleData


Namespace: FivePD.API.Utils#
File: Source/Utils/VehicleData.cs#

You can use this class to create VehicleData instances, which can be used to set the vehicle's data. (using SetVehicleData())


Fields#

LicensePlate#

Type:string

The license plate of the vehicle.

OwnerNetID#

Type:int

The network id of the owner ped.

NOTE: You should not set the value of this field (it will be ignored anyway).

OwnerFirstName#

Type:string

The first name of the owner.

NOTE: You should not set the value of this field (it will be ignored anyway).

OwnerLastName#

Type:string

The last name of the owner.

NOTE: You should not set the value of this field (it will be ignored anyway).

Items#

Type:List<Item>

The content of the vehicle (A list of items).

Insurance#

Type:bool

Vehicle insurance status (true = valid, otherwise false).

Registration#

Type:bool

Vehicle registration status (true = valid, otherwise false).

Color#

Type:string

The color of the vehicle.

NOTE: You should not set the value of this field (it will be ignored anyway).

Name#

Type:string

The name of the vehicle.

NOTE: You should not set the value of this field (it will be ignored anyway).

NetworkID#

Type:int

The network id of the vehicle.

NOTE: You should not set the value of this field (it will be ignored anyway).


Usage#

VehicleData vehData = new VehicleData();
vehData.Insurance = false; // to set insurancevehData.Registration = false; // to set registration