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.

LennyModVanta

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    LennyModVanta reacted to Yasd in Stop the Ped and Policing Redefined   
    In your callout you call STP.DrunkSTP(ped, true);
    Or easier:
    ped.DrunkSTP();
  2. Like
    LennyModVanta reacted to Yasd in Stop the Ped and Policing Redefined   
    You have to bundle the PolicingRedefined.dll in your project, then you can call:
    PolicingRedefined.API.PedAPI.SetPedDrunk(ped, mappedLevel, setWalkstyle);

    For StopThePed the same process, but call:
    StopThePed.API.Functions.setPedAlcoholOverLimit(ped, drunk);

    Be aware that if you call the API function directly and a user hasn't installed the dll, LSPDFR will crash.

    To prevent that, you have to check in your plugin if STP or PR is installed and working. Only then you are allowed to call the API functions.

    You have to create a seperate class, it can look something like this:

    internal static class STP
    {
    internal static void DrunkSTP(this Ped ped)
    {
    if (Config.STPinstalled)
    {
    ped.DrunkSTP2(true);
    }
    }
    private static void DrunkSTP2(this Ped ped, bool drunk = true)
    {
    if (Config.STPinstalled)
    {
    StopThePed.API.Functions.setPedAlcoholOverLimit(ped, drunk);
    }
    }
    }
    As you can see there are two funtions for each function. This is required so LSPDFR doesn't crash when the required dll is not installed by the user.


    In your Main class you have to check if the STP or PR dll is installed.
    You can do that with: File.Exists(@"plugins\LSPDFR\PolicingRedefined.dll")

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.