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.

[API Bug] Unable to Call In via B after SetPursuitAsCalledIn(false)

Featured Replies

I rember testing the Function.SetPursuitAsCalledIn().
And its now the third plugin where this function won't work.
 

I am always unable to press B after creating the pursuit and setting it to SetPursuitAsCalledIn(false).

Edit:
seems like this Bug happens almost every time.
Log is also attatched. Error log looks like it is a Bug.

Code:

Game.LogTrivial("[lspdfrTesterPlugin] DEBUG: Started Code Snippet");

// -------------------------------------WRITE CODE HERE----------------------------------------------------
var sus = Game.LocalPlayer.Character.GetNearbyPeds(1)[0];
var pursuit = LSPD_First_Response.Mod.API.Functions.CreatePursuit();
LSPD_First_Response.Mod.API.Functions.SetPursuitAsCalledIn(pursuit, false);
LSPD_First_Response.Mod.API.Functions.AddPedToPursuit(pursuit, sus);

// ----------------------------------------CODE END--------------------------------------------------------
Game.LogTrivial("[lspdfrTesterPlugin] DEBUG: Code Snippet -> END");


XML Summary:
image.thumb.png.d4da666b5f0b4d4e69847f5d03cd0f29.png:

Log: (Might be interesting)

Spoiler




7/28/2021 12:49:00 AM.593] LSPD First Response: [lspdfrTesterPlugin] DEBUG: Started Code Snippet
[7/28/2021 12:49:00 AM.598] LSPD First Response: [TRACE] Created new chase
[7/28/2021 12:49:00 AM.602] LSPD First Response: [TRACE] Assigned ped to Chase #1 (GameplayMandatory)
[7/28/2021 12:49:00 AM.602] LSPD First Response: [TRACE] Took ownership of suspect for chase
[7/28/2021 12:49:00 AM.621] LSPD First Response: [TRACE] Suspect added to chase
[7/28/2021 12:49:00 AM.624] LSPD First Response: [lspdfrTesterPlugin] DEBUG: Code Snippet -> END
[7/28/2021 12:49:00 AM.645] LSPD First Response: [TRACE] Starting chase
[7/28/2021 12:49:00 AM.701] LSPD First Response: [TRACE] Player now monitoring Ashley Rocket
[7/28/2021 12:49:00 AM.725] LSPD First Response: [TRACE] [CONSOLE] System.NotImplementedException: The method or operation is not implemented.
[7/28/2021 12:49:00 AM.726] at lEAKSsyKDRbwPsccFNyJxXrGknJo.FSnQdAnfvXcFZcchoRXZMTzCVBkm(RGPjOkRPnLfZltzOosamPEBLITeEA ) in E:\GTA V\LSPD First Response\LSPD First Response\Engine\Scripting\AI\Cooldown.cs:line 48
[7/28/2021 12:49:00 AM.727] at kEJQqoRLHJDruMJuMGQVupAkOVsV.HYxXCHHBGHoZzMRGBrCdVLiXTBXo(RGPjOkRPnLfZltzOosamPEBLITeEA )
[7/28/2021 12:49:00 AM.729] at ifRrBDLkRlAtBcLSKeTzXBrTVHdGA.FSnQdAnfvXcFZcchoRXZMTzCVBkm(RGPjOkRPnLfZltzOosamPEBLITeEA ) in E:\GTA V\LSPD First Response\LSPD First Response\Mod\BackupManager.cs:line 848
[7/28/2021 12:49:00 AM.730] LSPD First Response: [TRACE] [CONSOLE] System.NotImplementedException: The method or operation is not implemented.
[7/28/2021 12:49:00 AM.731] at cDEOObApGyydtuDFtavqWfIZtzXe.FSnQdAnfvXcFZcchoRXZMTzCVBkm(RGPjOkRPnLfZltzOosamPEBLITeEA ) in E:\GTA V\LSPD First Response\LSPD First Response\Engine\Scripting\AI\CooldownFail.cs:line 48
[7/28/2021 12:49:00 AM.731] at kEJQqoRLHJDruMJuMGQVupAkOVsV.HYxXCHHBGHoZzMRGBrCdVLiXTBXo(RGPjOkRPnLfZltzOosamPEBLITeEA )
[7/28/2021 12:49:00 AM.732] at yECacSfvnyGUHCwWeTtiMVUEIzgzd.FSnQdAnfvXcFZcchoRXZMTzCVBkm(RGPjOkRPnLfZltzOosamPEBLITeEA ) in E:\GTA V\LSPD First Response\LSPD First Response\Mod\BackupManager.cs:line 772
[7/28/2021 12:49:01 AM.710] LSPD First Response: [TRACE] Invoking PedGainedVisual
[7/28/2021 12:49:02 AM.713] LSPD First Response: [TRACE] InvokePedRegainedVisualOfSuspectEvent
[7/28/2021 12:49:02 AM.717] LSPD First Response: [TRACE] Visual regained event fired

 

 

Edited by ziipzaaapM16A4
Unsolved

Take a look at my Plugins:

AmbientAICallouts: Ai get calls too. Callouts can turn into a backup request for the player [YouTube Link]

Search Vehicle Plugin: Simple and more Immersive Vehicle Search Plugin [YouTube Link]

What Was You Name Again?: Get the name of a Suspect even when arrested and placed in your Vehicle [YouTube Link]
Corpse Inspection:  Investigate the corpse. Interact and search for details in a more Cinematic way  [YouTube Link]
[WIP] EnvoirementalCallouts: A couple of Callouts and WorldEvents that are likely to happen to you while you're on duty [Youtube Link]

[OnHold] EMS Support: Be the First Responder of Medical Emergency's and do CPR on Patients [YouTube Link]

 

spacer.png

Checkout my Patreon for Early Access to my mods                                       checkout my Discord Server

  • The title was changed to [API Bug] Unable to Call In via B after SetPursuitAsCalledIn(false)
  • Management Team

What you are describing is expected behavior insofar as you are never really calling in a pursuit, but you are reporting a crime (hence you are holding down ACTION_CRIME_REPORT). This crime, in this case a suspect fleeing from the player, is linked to the pursuit and calls it in. Now I am not sure if I want to make the crime auto-create itself when a pursuit is set as not called in as that might not be desirable in all cases. Also not too sold on a function just for this or yet another overload that then might introduce weird side-effects, just like the not called in one, in the future. I would have to think about it, but I would not expect anything soon.

 

The log entries can be disregarded, they happen during decision tree warmup only.

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

  • Author

so the simplest solution would be i recreate what happens when pressing the ACTION_CRIME_REPORT button myself. 
- the b hold in the rage native ui elements.
- the police scanner message & the notification message & and requesting a backup unit. 

because all i want is a pursuit where the player needs to call it in.  
I dont get it a 100% why this is request faces a problem. i would like to understand it.

Edited by ziipzaaapM16A4

Take a look at my Plugins:

AmbientAICallouts: Ai get calls too. Callouts can turn into a backup request for the player [YouTube Link]

Search Vehicle Plugin: Simple and more Immersive Vehicle Search Plugin [YouTube Link]

What Was You Name Again?: Get the name of a Suspect even when arrested and placed in your Vehicle [YouTube Link]
Corpse Inspection:  Investigate the corpse. Interact and search for details in a more Cinematic way  [YouTube Link]
[WIP] EnvoirementalCallouts: A couple of Callouts and WorldEvents that are likely to happen to you while you're on duty [Youtube Link]

[OnHold] EMS Support: Be the First Responder of Medical Emergency's and do CPR on Patients [YouTube Link]

 

spacer.png

Checkout my Patreon for Early Access to my mods                                       checkout my Discord Server

  • Management Team

That seems right, but we do not request backup when a pursuit is being called in, so you can leave that out. A called in pursuit will add nearby units automatically.

 

The request itself is not a problem, but I don't have a API solution to support it yet that I really like.

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

  • 5 months later...
  • Author
On 7/28/2021 at 7:06 PM, LMS said:

That seems right, but we do not request backup when a pursuit is being called in, so you can leave that out. A called in pursuit will add nearby units automatically.

 

The request itself is not a problem, but I don't have a API solution to support it yet that I really like.


I made my own version of the action_crime_report button specifically for this event.
Now i got my "Reporting PC503" overlapping over lspdfr's "Reporting PC503".

Can i somehow remove the action_crime_report for this suspect or block its feature for the time of the event?

Edited by ziipzaaapM16A4

Take a look at my Plugins:

AmbientAICallouts: Ai get calls too. Callouts can turn into a backup request for the player [YouTube Link]

Search Vehicle Plugin: Simple and more Immersive Vehicle Search Plugin [YouTube Link]

What Was You Name Again?: Get the name of a Suspect even when arrested and placed in your Vehicle [YouTube Link]
Corpse Inspection:  Investigate the corpse. Interact and search for details in a more Cinematic way  [YouTube Link]
[WIP] EnvoirementalCallouts: A couple of Callouts and WorldEvents that are likely to happen to you while you're on duty [Youtube Link]

[OnHold] EMS Support: Be the First Responder of Medical Emergency's and do CPR on Patients [YouTube Link]

 

spacer.png

Checkout my Patreon for Early Access to my mods                                       checkout my Discord Server

  • Management Team
On 12/29/2021 at 3:49 PM, ziipzaaapM16A4 said:


I made my own version of the action_crime_report button specifically for this event.
Now i got my "Reporting PC503" overlapping over lspdfr's "Reporting PC503".

Can i somehow remove the action_crime_report for this suspect or block its feature for the time of the event?

 

Would a function to ignore crime events for ped x work?

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

  • Author
17 hours ago, LMS said:

 

Would a function to ignore crime events for ped x work?

Yes. This is just what i searched for.

Take a look at my Plugins:

AmbientAICallouts: Ai get calls too. Callouts can turn into a backup request for the player [YouTube Link]

Search Vehicle Plugin: Simple and more Immersive Vehicle Search Plugin [YouTube Link]

What Was You Name Again?: Get the name of a Suspect even when arrested and placed in your Vehicle [YouTube Link]
Corpse Inspection:  Investigate the corpse. Interact and search for details in a more Cinematic way  [YouTube Link]
[WIP] EnvoirementalCallouts: A couple of Callouts and WorldEvents that are likely to happen to you while you're on duty [Youtube Link]

[OnHold] EMS Support: Be the First Responder of Medical Emergency's and do CPR on Patients [YouTube Link]

 

spacer.png

Checkout my Patreon for Early Access to my mods                                       checkout my Discord Server

  • 2 weeks later...

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.