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.

LSPDFR 0.4.9 API Update

Featured Replies

  • Management Team

LSPDFR 0.4.9 introduces very minor API additions.

 

Functions

  • SetPursuitvestigativeMode
  • GetIlluminatedClothingStyle
  • SetPedArrestIgnoreGroup

 

Documentation

LSPD First Response.XML

 

Check the bottom of this thread for new functions introduced in build 8151 (April 27, 2022).

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

  • The topic was pinned
  • Author
  • Management Team

Expanding a bit on how investigative mode will work from a developer perspective:

 

We expect you to call SetPursuitInvestigativeMode right after creating a chase. You can technically call it while a chase is already running, but that behavior is currently undefined, you have been warned. What this does internally is make all cops use the less aggressive response and approach behavior where they will walk up to a suspect hands on holster and then confront the suspect. The suspect can then surrender or flee. The latter then turns the chase into a traditional pursuit. During investigative mode, the suspect will wander around normally, but can react to the player or other cops and might surrender or flee on sight. Chances here are influenced by whether the player/cop is armed and how heavily currently.

 

Should the suspect get involved into combat or enter a vehicle during investigative mode, the chase will automatically be turned into a traditional pursuit. We have many more plans for this concept including the ability for AI officers to ticket and warn suspects and it is certainly not fully fledged out yet. I thought to throw in the API call anyway to at least familiarize yourself a bit better with the experience and do a few tests here and there. If you have any questions or comments, let me know here.

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

A note about the two other API functions in 0.4.9 as well:

 

Calling SetPedArrestIgnoreGroup with true will set the specific Ped to be ingored when LSPDFR checks if they can be stopped by the player when pressing and holding E.  This theoretically should allow for normally restricted peds like firefighters to be stopped (and potentially arrested, ticketed, etc. too).  Note that it only applies to on-foot stops at the moment and not traffic stops or gunpoint arrest takedowns.

 

GetIlluminatedClothingStyle simply retrieves the currently set Illuminted Clothing Style from the Interaction MenuWe added this to keep consistency of most current settings in the Interaction Menu being gettable through the API, and this can be either:

  • Off
  • On
  • Pulse
  • Flash

 

"You tell me exactly what you want, and I will very carefully explain to you why it cannot be."

  • 7 months later...
  • Author
  • Management Team

The small update today added a few more functions, namely:

  • AcceptPendingCallout
  • GetCalloutAcceptanceState
  • GetPursuitCops
  • HasPedSurrendered
  • SetPedDisableCrimeEvents
  • SetPlayerInteractionAction

 

LSPD First Response.XML

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

  • 3 months later...
  • Author
  • Management Team

The update today added a few more functions, namely:

  • GetPlayerWalkStyle
  • IsPedKneelingTaskActive
  • OnPedContrabandFound (event)

LSPD First Response.XML

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

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.