Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Suspect's blip not deleting

Featured Replies

I'm doing the thing where once you speak to a victim, the witness blip appears and the victim's blip deletes, after you speak to the witness, the suspect blip appears, and the witness blip gets deleted. And I put it as after the suspect has been arrested, the blip gets deleted but it's not working

 

 

 

 

 

  scriptstate = ECalloutState.SpokeWithWitness;
            if (suspect)
            {
                if (suspect.IsAlive)
                {
                    if (Utils.Player.DistanceTo2D(suspect) <= 2)
                    {
                        if (Utils.Player.IsOnFoot)
                        {
                            suspect.TurnToFaceEntity(Utils.Player);

                            scriptstate = ECalloutState.SpeakWithSuspect;
                        }
                    }
                }
                scriptstate = ECalloutState.SpeakWithSuspect;
                if (suspect)
                {
                    if (suspect.IsAlive)
                    {
                        if (Utils.Player.DistanceTo2D(suspect) <= 2)
                        {
                            if (Utils.Player.IsOnFoot)
                            {
                                if (Game.IsKeyDown(Keys.T))
                                {
                                    if (dialog == EDialog.Dialog1)
                                    {
                                        Game.DisplaySubtitle(dialog2WithSuspect[dialog2WithSuspectIndex]);
                                        dialog2WithSuspectIndex++;
                                    }
                                }
                                if (dialog2WithSuspectIndex == 7)
                                {
                                    GameFiber.StartNew(delegate
                                    {
                                        GameFiber.Sleep(5200);
                                        Game.DisplayNotification("Detain the ~r~suspect~s~, and gather their information");
                                        scriptstate = ECalloutState.SpokeWithSuspect;
                                    });
                                }
                            }
                        }
                    }
                    scriptstate = ECalloutState.SpokeWithSuspect;
                    {
                        if (Functions.IsPedArrested(suspect))
                            if (suspectb) suspectb.Delete();
                        if (SpawnedBlips.Contains(suspectb)) SpawnedBlips.Remove(suspectb);
                        suspect.Tasks.Clear();
                        End();
                    }
                }
            }
        }

17 hours ago, SRS Bladez said:

I'm doing the thing where once you speak to a victim, the witness blip appears and the victim's blip deletes, after you speak to the witness, the suspect blip appears, and the witness blip gets deleted. And I put it as after the suspect has been arrested, the blip gets deleted but it's not working

 

 

 

 

 

  scriptstate = ECalloutState.SpokeWithWitness;
            if (suspect)
            {
                if (suspect.IsAlive)
                {
                    if (Utils.Player.DistanceTo2D(suspect) <= 2)
                    {
                        if (Utils.Player.IsOnFoot)
                        {
                            suspect.TurnToFaceEntity(Utils.Player);

                            scriptstate = ECalloutState.SpeakWithSuspect;
                        }
                    }
                }
                scriptstate = ECalloutState.SpeakWithSuspect;
                if (suspect)
                {
                    if (suspect.IsAlive)
                    {
                        if (Utils.Player.DistanceTo2D(suspect) <= 2)
                        {
                            if (Utils.Player.IsOnFoot)
                            {
                                if (Game.IsKeyDown(Keys.T))
                                {
                                    if (dialog == EDialog.Dialog1)
                                    {
                                        Game.DisplaySubtitle(dialog2WithSuspect[dialog2WithSuspectIndex]);
                                        dialog2WithSuspectIndex++;
                                    }
                                }
                                if (dialog2WithSuspectIndex == 7)
                                {
                                    GameFiber.StartNew(delegate
                                    {
                                        GameFiber.Sleep(5200);
                                        Game.DisplayNotification("Detain the ~r~suspect~s~, and gather their information");
                                        scriptstate = ECalloutState.SpokeWithSuspect;
                                    });
                                }
                            }
                        }
                    }
                    scriptstate = ECalloutState.SpokeWithSuspect;
                    {
                        if (Functions.IsPedArrested(suspect))
                            if (suspectb) suspectb.Delete();
                        if (SpawnedBlips.Contains(suspectb)) SpawnedBlips.Remove(suspectb);
                        suspect.Tasks.Clear();
                        End();
                    }
                }
            }
        }

 

Do you have Stop The Ped plugin when testing it? If you do, try to test without STP.

From what I read, STP will reset the ped with different ped instance after it got arrested.

Edited by Pazzi

10 hours ago, SRS Bladez said:

So arrest them at gunpoint?

 

basically, if you're using stop the ped, the callout is only able to interact with suspect before they got arrested.

  • Author
7 hours ago, Pazzi said:

 

basically, if you're using stop the ped, the callout is only able to interact with suspect before they got arrested.

Okay, so I've changed 

 scriptstate = ECalloutState.SpokeWithSuspect;
                    {
                        if (Functions.IsPedArrested(suspect))
                            if (suspectb) suspectb.Delete();
                        if (SpawnedBlips.Contains(suspectb)) SpawnedBlips.Remove(suspectb);
                        suspect.Tasks.Clear();
                        End();
                    }

 

 

To

 

                scriptstate = ECalloutState.SpokeWithSuspect;
                {
                    if (Functions.IsPedArrested(suspect))
                    {
                        if (suspectb.Exists()) suspectb.Delete();
                        End();
                    }
                }

 

Arrest them at gunpoint and everything, but it still doesn't delete the blip

1 hour ago, SRS Bladez said:

Okay, so I've changed 

 scriptstate = ECalloutState.SpokeWithSuspect;
                    {
                        if (Functions.IsPedArrested(suspect))
                            if (suspectb) suspectb.Delete();
                        if (SpawnedBlips.Contains(suspectb)) SpawnedBlips.Remove(suspectb);
                        suspect.Tasks.Clear();
                        End();
                    }

 

 

To

 

                scriptstate = ECalloutState.SpokeWithSuspect;
                {
                    if (Functions.IsPedArrested(suspect))
                    {
                        if (suspectb.Exists()) suspectb.Delete();
                        End();
                    }
                }

 

Arrest them at gunpoint and everything, but it still doesn't delete the blip

 

if you wanna delete the suspect's blip, try this one:

 

if (suspect == null || !suspect.isValid() || Functions.isPedArrested(suspect) {

      if (suspectb != null && suspectb.Exists()) suspectb.Delete();

      End();

}

  • Author
42 minutes ago, Pazzi said:

 

if you wanna delete the suspect's blip, try this one:

 

if (suspect == null || !suspect.isValid() || Functions.isPedArrested(suspect) {

      if (suspectb != null && suspectb.Exists()) suspectb.Delete();

      End();

}

Nope, still doesn't work

  • 4 months later...
  • Author

I can't anymore. Don't have Visual Studio anymore. I thought about coding again. But didn't do it. I've mainly moved on to MOWAS2. But all I did was delete the process, and re-do it again. Pretty simple

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.