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.

Developer Questions — Policing Redefined API, LSPDFR Interactions, and RPH

Featured Replies

I'm currently researching several LSPDFR and Policing Redefined API interactions for a C# plugin project. I've been reviewing the available developer documentation, SDK references, and public API methods, but there are a few areas where I'd appreciate input from developers who have worked directly with these systems.

I'm particularly interested in supported API methods rather than simulating keyboard inputs or navigating menus programmatically.

1. Policing Redefined — Identification Handover

PR exposes events such as OnIdentificationGiven, OnDriverIdentificationGiven, and OnOccupantIdentificationGiven, which appear to provide notifications when an NPC physically hands over identification.

Is there a publicly accessible method for initiating PR's actual ID or driver's license handover interaction from another plugin?

I'm looking to trigger the normal interaction, including its animations and related record updates, rather than simply displaying an ID or marking a pedestrian as identified.

2. Policing Redefined — Tow Service

The documented BackupAPI.RequestTowServiceBackup() opens the tow-selection menu.

The direct BackupAPI.RequestBackup() also supports tow-related unit types such as SmallTowTruck, LargeTowTruck, and FlatbedTowTruck.

Has anyone successfully used these direct methods to request a specific tow type for a particular vehicle without opening the selection menu?

Specifically, is there a supported way to associate the requested tow service with a target vehicle and allow PR to complete its normal towing workflow?

3. Policing Redefined — Felony Stops

The documented BackupAPI.InitiateFelonyStop() method appears to initiate the felony-stop process but still opens a mode-selection menu.

Is there an API method or supported integration approach for specifying the felony-stop mode directly?

I'm interested in preserving PR's existing mechanics rather than recreating the entire interaction.

4. Action Completion and Event Handling

For developers working with PR backup and service requests, what is the recommended way to determine when an action has actually completed?

For example, RequestBackup() returns a boolean indicating whether the request was accepted, but that doesn't necessarily mean a unit has arrived or completed its assigned task.

Are there supported callbacks, events, or state queries for tracking unit arrival, service completion, or failure?

5. RPH Game Fibers and External Operations

For plugins handling asynchronous operations alongside RPH game-fiber-dependent APIs, are there recommended patterns for safely scheduling actions and returning results?

I'm particularly interested in avoiding blocking calls, invalid entity references, duplicate action execution, and conflicts between independent plugins.

Environment / References

  • LSPDFR 0.4.9

  • Policing Redefined 1.0.0.5

  • Common Data Framework 1.0.0.10

  • RAGE Plugin Hook SDK 1.124.0

  • .NET Framework 4.8

I understand that not every internal operation is necessarily exposed through the public API. If any of these features aren't currently supported, confirmation of that would be just as helpful as a working example.

I'm not looking for anyone's proprietary source code or private implementation details. Links to public documentation, method signatures, or small examples using officially supported APIs would be greatly appreciated.

Thanks in advance to anyone willing to share their experience!

Pasted content

Edited by JustJohnathan

Just a guy learning new things and having fun while I do it. 

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.