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.

[Solved] Remove Suspect Blip when Lost Visual?

Featured Replies

Hello, everyone. I am trying to iron out a few bugs in my callouts plugin. One of which is a bug where if you lose visual of the suspect LSPDFR will attempt to make it where the suspect is no longer visible on the mini map, but for my callouts plugin the blip stays there. Here is what I've tried.

 

Added this in the void Process():

            // EXPERIMENTAL //
            if (Functions.IsPedVisualLost(p_Suspect))
            {
                if (SuspectBlip.Exists())
                {
                    SuspectBlip.Delete(); // Deletes the blip when the player loses the suspect.
                }
            }

            if (p_Suspect.IsOnScreen || !Functions.IsPedVisualLost(p_Suspect))
            {
                if (!SuspectBlip.Exists())
                {
                    SuspectBlip = p_Suspect.AttachBlip(); // Attaches blip to the suspect.
                    SuspectBlip.IsFriendly = false; // Suspect is not friendly.
                }
            }
            // END EXPERIMENTAL //

Any help would be gladly appreciated, thanks!

Edited by OfficerJohnnyShumway
The question has been solved. I updated the title.

  • Author

 

3 minutes ago, LMS said:

Out of curiosity: Why are you even attaching a blip to the suspect yourself? LSPDFR will do that automatically.

Well I didn't know that. I was taught to attach the blip in "bool OnCalloutAccepted()" and I've done it ever since.

Edited by OfficerJohnnyShumway
Correction/Update

  • Management Team

I do not recall if that might have been necessary for very very old LSPDFR versions, but you definitely do not need to do it now. Does that solve your problem or are you working on something else?

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
1 minute ago, LMS said:

I do not recall if that might have been necessary for very very old LSPDFR versions, but you definitely do not need to do it now. Does that solve your problem or are you working on something else?

Hold on, brb

  • Author
29 minutes ago, LMS said:

I do not recall if that might have been necessary for very very old LSPDFR versions, but you definitely do not need to do it now. Does that solve your problem or are you working on something else?

Okay so it kind of works, but the blip somehow disappeared from the map even though I was right behind the suspect?

  • Author
1 hour ago, LMS said:

That certainly should not happen. It should start to flash for a bit first (indicating losing visual) and then disappear if not regained.

I'll check it again a few more times. Thanks for the help!

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...

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.