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.

Pursuit.Exists() or similar request

Featured Replies

I need a bool that indicates if the pursuit has started. I know that there is this Functions.IsPursuitStillRunning(LSPD_First_Response.Mod.API.LHandle pursuit) but for what I want that doesn't work. I need to know if the pursuit started to make different situations in my callouts

 

I declared my own boolean called pursuitInitiated. That only works if you trigger the pursuit in code though. 

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

  • 3 years later...

How did you end up figuring out if player was in a pursuit? 

 

Even though this was was years ago. Gotta me some hope for my noob self.

Edited by Markadaliah

Thank you. When I try to call

 

LHandle pursuit = Functions.GetActivePursuit();

if (pursuit = true)

{

    End();

}

 

OR 

 

LHandle pursuit = Functions.GetActivePursuit();

if (pursuit.exists)

{

    End();

}

 

None of those work. Get redlined for true, and exists doesn’t show up as a possible entry by intellisense. Both give me red line 

Edited by Markadaliah

On 11/2/2018 at 7:56 PM, Markadaliah said:

Thank you. When I try to call

 

LHandle pursuit = Functions.GetActivePursuit();

if (pursuit = true)

{

    End();

}

 

OR 

 


LHandle pursuit = Functions.GetActivePursuit();
if (pursuit != null)
{
    End();
}

 

None of those work. Get redlined for true, and exists doesn’t show up as a possible entry by intellisense. Both give me red line 

 

 

If you want to check if the pursuit is still active, check if it is null or not.

LHandle pursuit = Functions.GetActivePursuit();
if (pursuit != null)
{
    End();
}

 

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.