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.

How to use Backup in LSPDFR Plugins.

Featured Replies

  • Community Team

What are you trying to do I dont understand? The error message though is because you are not passing the correct value.

All of the LSPDFR backup types are:
 

public enum EBackupUnitType
{
    LocalUnit,
    StateUnit,
    SwatTeam,
    NooseTeam,
    AirUnit,
    NooseAirUnit,
    Ambulance,
    Firetruck,
    PrisonerTransport
}


The way you call it is:

 

Functions.RequestBackup(Game.LocalPlayer.Character.Position, EBackupResponseType.Code3, EBackupUnitType.LocalUnit);

 

Edited by SuperPyroManiac

1 hour ago, StinkeyV2 said:

ChatGPT suggested this

There are guess-work in chat-gpt 'solutions'.
You should study the documentation instead.
For an ambulance you use

Spoiler

    //call ambulance with key-press
 

                            if (Game.IsKeyDown(System.Windows.Forms.Keys.<your_key_choice>))
                            {
                                Functions.RequestBackup(Game.LocalPlayer.Character.Position,
                                EBackupResponseType.Code2, EBackupUnitType.Ambulance);
                                Game.DisplaySubtitle("~b~Ambulance requisted", 5000);
                                // only for logging : Game.LogTrivial(" Signal from Req. ambulance ");
                            }

 

 

 

 

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

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.