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.

Callout Cleanup upon pressing "X"

Featured Replies

Hi all,

So I've gotten my spawns to be really great now (finally took the time to go through and fix them all), but one thing I've noticed is this:

If I force a callout and let's say a knife attack comes up.  It's set to spawn the two perps in before it's displayed so we know they're there waiting for me to press "y".  However, when I don't want it and I press "x" again (forcing a new callout to come up) the perps just stand there.  How do I fix this?  I have my callout cleanup as:

        public override void End()
        {
            base.End();
            Game.DisplayNotification("~y~Dispatch~w~: ~g~Code 4~w~, good work officer!");
            myBlip.DisableRoute();
            if (myPed.Exists()) myPed.Dismiss();
            if (victim.Exists()) victim.Dismiss();
            if (myBlip.Exists()) myBlip.Delete();
        }

But I don't think that's called when I force a new callout.  How can I go about fixing this?

It's not a big deal as I don't foresee many people spamming "x" like I do to get one specific callout, so I'll survive if there is no workaround, but the perfectionist in me wants them to be dismissed!

Thanks!

Edited by fiskey111

 

 

There's a method that you can override called OnCalloutNotAccepted()   I'm guessing that'll be called. 

I tend to spawn my entities in only after the callout has been accepted for the sake of realism > I've come across random Road traffic collisions just because the callout appeared, but I had not accepted it. Slightly annoying imo, which is why I only spawn after acceptance. 

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

  • Author
8 minutes ago, Albo1125 said:

There's a method that you can override called OnCalloutNotAccepted()   I'm guessing that'll be called. 

I tend to spawn my entities in only after the callout has been accepted for the sake of realism > I've come across random Road traffic collisions just because the callout appeared, but I had not accepted it. Slightly annoying imo, which is why I only spawn after acceptance. 

Okay, I guess that's not a bad idea, I was always just afraid that they wouldn't spawn for some reason because of the location, but I've never seen a callout not appear because of that.  Thanks!

 

 

6 hours ago, fiskey111 said:

Okay, I guess that's not a bad idea, I was always just afraid that they wouldn't spawn for some reason because of the location, but I've never seen a callout not appear because of that.  Thanks!

No worries about that: you can still set the spawn point before displaying. You then only spawn the entities after acceptance. 

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

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.