Models
PedData
Represents a ped history.
This model represents the database table fivepd_ped_data. When modifying any properties of this model, ensure that you have saved the changes using the DatabaseContext.
Methods
HasLicense
Checks if the ped has a license.
Parameters
| Name | Type | Description |
|---|---|---|
| pedLicenseType | PedLicenseType | The license type to check. |
Returns
| Name | Type |
|---|---|
| bool | True if the ped has the license, false otherwise. |
GetLicense
Gets the license of the specified type.
Parameters
| Name | Type | Description |
|---|---|---|
| pedLicenseType | PedLicenseType | The license type to get. |
Returns
| Name | Type |
|---|---|
| PedLicense | The license. |
AlcoholOverLegalLimit
Gets a value indicating whether the ped's alcohol level is over the legal limit.
Returns
| Name | Type |
|---|---|
| bool | True if the ped's alcohol level is over the legal limit, false otherwise. |
Properties
Id
Gets or sets the identifier.
Type: int
VehicleData
Gets or sets the identifier of the vehicle the ped is owning.
Type: VehicleData
Gender
Gets or sets the gender.
Type: FGender
Firstname
Gets or sets the firstname.
Type: string
Lastname
Gets or sets the lastname.
Type: string
Birthdate
Gets or sets the birthdate.
Type: DateTime
Items
Gets or sets the items.
Type: List<Item>
Warrants
Gets or sets the warrants.
Type: List<string>
Licenses
Gets or sets the licenses.
Type: IList<PedLicense>
AlcoholLevel
Gets or sets the alcohol level.
Type: double
Drugs
Gets or sets the drugs.
Type: List<Drug>