VehicleData
FivePD.API.Utils
#
Namespace: Source/Utils/VehicleData.cs
#
File: You can use this class to create VehicleData instances, which can be used to set the vehicle's data. (using SetVehicleData()
)
#
Fields#
LicensePlateType:stringThe license plate of the vehicle.
#
OwnerNetIDType:intThe network id of the owner ped.
NOTE: You should not
set the value of this field (it will be ignored anyway).
#
OwnerFirstNameType:stringThe first name of the owner.
NOTE: You should not
set the value of this field (it will be ignored anyway).
#
OwnerLastNameType:stringThe last name of the owner.
NOTE: You should not
set the value of this field (it will be ignored anyway).
#
ItemsType:List<Item>The content of the vehicle (A list of items).
#
InsuranceType:boolVehicle insurance status (true
= valid, otherwise false
).
#
RegistrationType:boolVehicle registration status (true
= valid, otherwise false
).
#
ColorType:stringThe color of the vehicle.
NOTE: You should not
set the value of this field (it will be ignored anyway).
#
NameType:stringThe name of the vehicle.
NOTE: You should not
set the value of this field (it will be ignored anyway).
#
NetworkIDType:intThe network id of the vehicle.
NOTE: You should not
set the value of this field (it will be ignored anyway).
#
UsageVehicleData vehData = new VehicleData();
vehData.Insurance = false; // to set insurancevehData.Registration = false; // to set registration