private bool IsBlipSirenActivated(Vehicle car) { if (!EntityDecoration.ExistOn(car, BLIPSIREN_PNAME)) { return(false); } else { return(EntityDecoration.Get <bool>(car, BLIPSIREN_PNAME)); } }
public static bool IsSirenMuted(Vehicle car) { if (!EntityDecoration.ExistOn(car, SILENTSIREN_PNAME)) { return(false); } else { return(EntityDecoration.Get <bool>(car, SILENTSIREN_PNAME)); } }
private bool IsAltSoundActivated(Vehicle car) { if (!EntityDecoration.ExistOn(car, SIRENSOUND_PNAME)) { return(false); } else { return(EntityDecoration.Get <bool>(car, SIRENSOUND_PNAME)); } }
public SilentSirens() { EntityDecoration.RegisterProperty(SILENTSIREN_PNAME, DecorationType.Bool); Tick += OnTick; }
private void SetSirenMuted(Vehicle car, bool state) { EntityDecoration.Set(car, SILENTSIREN_PNAME, state); }
public BlipSiren() { EntityDecoration.RegisterProperty(BLIPSIREN_PNAME, DecorationType.Bool); Tick += OnTick; }
private void SetBlipSirenActivated(Vehicle car, bool state) { EntityDecoration.Set(car, BLIPSIREN_PNAME, state); }
public SirenSound() { EntityDecoration.RegisterProperty(SIRENSOUND_PNAME, DecorationType.Bool); Tick += OnTick; }
private void SetAltSoundActivated(Vehicle car, bool state) { EntityDecoration.Set(car, SIRENSOUND_PNAME, state); }