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:stringThe license plate of the vehicle.
OwnerNetID#
Type:intThe network id of the owner ped.
NOTE: You should not set the value of this field (it will be ignored anyway).
OwnerFirstName#
Type:stringThe first name of the owner.
NOTE: You should not set the value of this field (it will be ignored anyway).
OwnerLastName#
Type:stringThe 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:boolVehicle insurance status (true = valid, otherwise false).
Registration#
Type:boolVehicle registration status (true = valid, otherwise false).
Color#
Type:stringThe color of the vehicle.
NOTE: You should not set the value of this field (it will be ignored anyway).
Name#
Type:stringThe name of the vehicle.
NOTE: You should not set the value of this field (it will be ignored anyway).
NetworkID#
Type:intThe 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