Exemplo n.º 1
0
 private bool IsBlipSirenActivated(Vehicle car)
 {
     if (!EntityDecoration.ExistOn(car, BLIPSIREN_PNAME))
     {
         return(false);
     }
     else
     {
         return(EntityDecoration.Get <bool>(car, BLIPSIREN_PNAME));
     }
 }
Exemplo n.º 2
0
 public static bool IsSirenMuted(Vehicle car)
 {
     if (!EntityDecoration.ExistOn(car, SILENTSIREN_PNAME))
     {
         return(false);
     }
     else
     {
         return(EntityDecoration.Get <bool>(car, SILENTSIREN_PNAME));
     }
 }
Exemplo n.º 3
0
 private bool IsAltSoundActivated(Vehicle car)
 {
     if (!EntityDecoration.ExistOn(car, SIRENSOUND_PNAME))
     {
         return(false);
     }
     else
     {
         return(EntityDecoration.Get <bool>(car, SIRENSOUND_PNAME));
     }
 }
Exemplo n.º 4
0
        public SilentSirens()
        {
            EntityDecoration.RegisterProperty(SILENTSIREN_PNAME, DecorationType.Bool);

            Tick += OnTick;
        }
Exemplo n.º 5
0
 private void SetSirenMuted(Vehicle car, bool state)
 {
     EntityDecoration.Set(car, SILENTSIREN_PNAME, state);
 }
Exemplo n.º 6
0
        public BlipSiren()
        {
            EntityDecoration.RegisterProperty(BLIPSIREN_PNAME, DecorationType.Bool);

            Tick += OnTick;
        }
Exemplo n.º 7
0
 private void SetBlipSirenActivated(Vehicle car, bool state)
 {
     EntityDecoration.Set(car, BLIPSIREN_PNAME, state);
 }
Exemplo n.º 8
0
        public SirenSound()
        {
            EntityDecoration.RegisterProperty(SIRENSOUND_PNAME, DecorationType.Bool);

            Tick += OnTick;
        }
Exemplo n.º 9
0
 private void SetAltSoundActivated(Vehicle car, bool state)
 {
     EntityDecoration.Set(car, SIRENSOUND_PNAME, state);
 }