Beispiel #1
0
 public virtual void Dismiss()
 {
     RemoveBlip();
     canRun = false;
     ProcHost.Stop();
     Logging.Logger.LogDebug(nameof(EvidenceBase), nameof(Dismiss), "invoked");
 }
 private void End()
 {
     DisplayLine("[~b~Detective~w~]: You can finish cleaning up the scene or leave, I've got all I need now.", DetectivePed);
     HasEnded  = true;
     IsRunning = false;
     DetectivePed.IsInvincible         = false;
     DetectivePed.IsPersistent         = false;
     DetectivePed.BlockPermanentEvents = false;
     _procHost.Stop();
 }
        private void End()
        {
            _processHost.Stop();

            if (DetectivePed)
            {
                DetectivePed.Dismiss();
            }
            if (DetectiveVeh)
            {
                DetectiveVeh.Dismiss();
            }
            if (DetectiveBlip)
            {
                DetectiveBlip.Delete();
            }
        }
 public void Dispose() => proc.Stop();
 public void End()
 {
     //stop the internal loop of ProcessHost
     procHost.Stop();
     //it does not need to be called if you did not Start() it
 }
Beispiel #6
0
 private void Stop()
 {
     stages.Stop();
 }