Exemplo n.º 1
0
 /// <summary>
 /// Sets whether the ped is over the alcohol limit or not.
 /// </summary>
 /// <param name="ped"></param>
 /// <param name="OverTheAlcoholLimit">If true, sets ped as over the limit. If false, sets ped as under the limit.</param>
 public static void SetPedAlcoholLevel(Ped ped, bool OverTheAlcoholLimit)
 {
     if (OverTheAlcoholLimit)
     {
         Breathalyzer.SetPedAlcoholLevels(ped, Breathalyzer.GetRandomOverTheLimitAlcoholLevel());
     }
     else
     {
         Breathalyzer.SetPedAlcoholLevels(ped, Breathalyzer.GetRandomUnderTheLimitAlcoholLevel());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the alcohol level for the ped. Used by Traffic Policer's Breathalyzer. Automatically converts the AlcoholLevel to an appropriate reading depending on the player's personal alcohol limit.
 /// </summary>
 /// <param name="ped"></param>
 /// <param name="AlcoholLevel"></param>
 public static void SetPedAlcoholLevel(Ped ped, AlcoholLevels AlcoholLevel)
 {
     Breathalyzer.SetPedAlcoholLevels(ped, AlcoholLevel);
 }