PedData
Namespace: FivePD.API.Utils#
File: Source/Utils/PedData.cs#
You can use this class to create PedData instances, which can be used to set the ped's data. (using SetPedData())
Fields#
FirstName#
Type:stringThe first name of the ped;
LastName#
Type:stringThe last name of the ped.
Warrant#
Type:stringThe name of the warrant (if there is any, otherwise null).
DriverLicense#
Type:LicenseLicense object.
Example#
Ped ped;...var data = await ped.GetData(); // using the extension methodvar driversLicense = data.DriverLicense;
string expirationStr = driversLicense.Expiration; // eg. 10/3/2020PedData.License.Status status = driversLicense.LicenseStatus; // can be: Valid, Expired, Revoked, SuspendedHuntingLicense#
Type:LicenseLicense object.
Example#
Ped ped;...var data = await ped.GetData(); // using the extension methodvar huntingLicense = data.HuntingLicense;
string expirationStr = huntingLicense.Expiration; // eg. 10/3/2020PedData.License.Status status = huntingLicense.LicenseStatus; // can be: Valid, Expired, Revoked, SuspendedFishingLicense#
Type:LicenseLicense object.
Example#
Ped ped;...var data = await ped.GetData(); // using the extension methodvar fishingLicense = data.FishingLicense;
string expirationStr = fishingLicense.Expiration; // eg. 10/3/2020PedData.License.Status status = fishingLicense.LicenseStatus; // can be: Valid, Expired, Revoked, SuspendedWeaponLicense#
Type:LicenseLicense object.
Example#
Ped ped;...var data = await ped.GetData(); // using the extension methodvar weaponLicense = data.WeaponLicense;
string expirationStr = weaponLicense.Expiration; // eg. 10/3/2020PedData.License.Status status = weaponLicense.LicenseStatus; // can be: Valid, Expired, Revoked, SuspendedDateOfBirth#
Type:stringIf you ever set this, you must use the following format: mm/dd/yyyy.
BloodAlcoholLevel#
Type:doubleBlood alcohol level.
UsedDrugs#
Type:bool[]NOTE: If you ever set the value of this field, it must always have 3 elements.
0indexed (first) elem indicates meth1indexed elem indicates coke2indexed elem indicated cannabis
Gender#
Type:GenderThe gender of the ped.
Age#
Type:intThe age of the ped (can be calculated from the DateOfBirth).
Address#
Type:stringThe home address of the ped.
Items#
Type:List<Item>A list of items that the ped currently possesses (NOTE: These items will shop up when you search the ped).
Violations#
Type:List<Violation>A list of violations that the ped has committed.