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.8 API Update

Featured Replies

  • Management Team

LSPDFR 0.4.8 introduces a few changes to how plugins work and also add many new features.

 

Plugins

Plugin loading has been changed significantly:

For the lifetime of LSPDFR (so until plugins are reloaded via RPH), all user plugins are only ever loaded (as in constructed) once and not loaded again when going off duty and going on duty again. This is because many plugins currently remain as "zombie" plugins when going off duty and are still receiving events.

 

To prevent plugins from registering the same event multiple times in Initialize when it is not freed beforehand, Initialize is now only ever called once when the plugin is first loaded. When the player goes off duty and then on duty again, it is not called again. Instead, a new method InitializeAgain is made available which can be used for stuff that needs to be done every time the plugin is activated. This method then assumes that events are properly freed in Finally so that multiple references are avoided. We've also added a default assembly resolve handler so that you do not necessarily need to include one with your mod for simple cases.

 

Callouts

We've added a CalloutCreationSource property to callouts describing the origin of the callout. In addition, you can now specify an additional advisory message for your callouts (see screenshot below) via CalloutAdvisory. Issues with the minimum and maximum distance for callouts have also been fixed.
048_callouts.png

 

New API functions

There are many new API functions in 0.4.8, please find the full list below:

  • DisplayPedId
  • DisplayVehicleRecord
  • GetPlayerRadioAction
  • IsCopBusy
  • IsPursuitCalledIn
  • PlayPlayerRadioAction
  • RemovePedFromPullover
  • RequestBackup overload to specify number of occupants
  • SetCopIgnoreAmbientCombatControl
  • SetPedAsArrested
  • SetPedAsIdentified
  • SetPlayerRadioAction
  • SetPlayerWalkStyle
  • SetPursuitAsCalledIn
  • StartPulloverOnParkedVehicle
     

Documentation

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.

  • The topic was pinned
  • 3 months later...
  • Author
  • Management Team

Please note that build 7688 introduces a few fixes and additions to our API.

 

Functions

  • IsPedCuffedTaskActive
  • PlayScannerAudio overload allowing to play a shorter intro
  • RandomizeMultiplayerModelAppearance
  • SetPedAsArrested overload accepting an arresting officer
  • SetPedCuffedTask
  • SetPursuitAsCalledIn
  • SetVehicleAdvisoryText

Events

  • OnPlayerPlacedEvidenceMarker
  • OnPlayerRemovingEvidenceMarker

 

Other Changes

Persona now has a "AdvisoryText" property.

 

 

Documentation

 

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.