Violation
FivePD.API.Utils
#
Namespace: Source/Utils/Violation.cs
#
File: The result of the GetPedData(<ped>)
method.
#
Fields#
OffenceType:stringThe name of the offence.
#
ChargeType:stringThe name of the charge.
#
UsageViolation violation = new Violation();violation.Offence = "<offence>";violation.Charge = "<charge>";
Using the value that ped.GetData()
(extension) method returns:
Ped ped;...var violations = await ped.GetData().Violations; // returns a List of Violations