예제 #1
0
 public void DisableSiren()
 {
     if (_siren._mainSiren._enable)
     {
         _siren._mainSiren.SetEnable(false);
         RemoteEventManager.SendEvent(RemoteEventManager.Commands.MainSiren, _vehicle, true, Game.Player.ServerId);
     }
     if (_siren.dual_siren)
     {
         _siren._tones.tone1.SetState(false);
         _siren._tones.tone2.SetState(false);
         _siren._tones.tone3.SetState(false);
         _siren._tones.tone4.SetState(false);
         RemoteEventManager.SendEvent(RemoteEventManager.Commands.DualSiren, _vehicle, true, Game.Player.ServerId);
     }
 }
예제 #2
0
        internal void RunTick()
        {
            if (_vehicle.IsDead)
            {
                VehicleManager.vehicleList.Remove(cachedElsID);
                ELS.TriggerServerEvent("ELS:FullSync:RemoveStale", cachedElsID);
                return;
            }
            _light.Ticker();

            if (_siren._mainSiren._enable && _light._stage.CurrentStage != 3)
            {
                _siren._mainSiren.SetEnable(false);
                RemoteEventManager.SendEvent(RemoteEventManager.Commands.MainSiren, _vehicle, true, Game.Player.ServerId);
            }
        }
예제 #3
0
 internal void RunTick()
 {
     _siren.Ticker();
     _light.Ticker();
     if (_siren._mainSiren._enable && _light._stage.CurrentStage != 3)
     {
         _siren._mainSiren.SetEnable(false);
         RemoteEventManager.SendEvent(RemoteEventManager.Commands.MainSiren, _vehicle, true, Game.Player.ServerId);
     }
     if (_vehicle.GetPedOnSeat(VehicleSeat.Any).IsPlayer)
     {
         lastdrivetime = Game.GameTime;
     }
     if (Game.GameTime - lastdrivetime >= Global.DeleteInterval)
     {
         //Delete();
     }
 }