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.

Beat Partners - Autonomous Partners, Proximal Pursuit Logic, Supervisor 1.0.0

(3 reviews)

5 Screenshots

This plugin beta allows you to spawn units that will act as your beat partner. They will persistently patrol given the selected parameters in the creation menu. This allows for further immersion, realism, and ambiance. The goal of this plugin is to create autonomous AIs that will patrol, in a close-to-similar fashion as a human player and eventually eliminate the need of needing to manually request backup units during certain situations.

 

Scenario Example: You can assign multiple units to patrol Grapeseed while you patrol Sandy Shores. If you get involved in a shooting, the Grapeseed units can automatically respond to assist. Or if you get in a pursuit, the Grapeseed units will only join the pursuit if the suspect enters the Grapeseed area. If the suspect exits the Grapeseed area, then those Grapeseed units will disengage from the pursuit and return to patrol.

 

Various features and customizations:

  • Assign a partner to patrol a specific zone (e.g. Vinewood)
  • Give the partner a name and a call sign (call sign will be displayed on the partner's blip on the map)
  • Assign a partner to patrol within a specified distance from the player (partner will try to stay within distance X from the player's position)
  • Assign a partner to respond to pursuits/callouts within their assigned zone
  • Display either the name tag or call sign tag above partners that are driving by the player
  • Have partners always respond to player-involved shootings
  • If a partner gets into a shooting away from the player, they will report it to dispatch
  • If a partner gets severely injured, they will radio "Officer down"
  • If a partner's vehicle is badly damaged or destroyed, they will become "out of service" to go to the nearest police station to retrieve a new vehicle or repair their vehicle, then return back to service
  • Partners will persistently be available to respond to calls / assist the player
  • Take a smoke break with your partner at a specified location

 

Proximal Pursuit Logic

You can select for each partner to only engage in pursuits if the pursuit passes within their assigned zone (e.g. Vinewood). Once the pursuit leaves their zone, the unit will drop out of the pursuit and return back to patrol. You can also have it where the partner will only engage pursuits when it is within a certain distance of their location (regardless of their assigned zone). 

 

20220714211037_1.thumb.jpg.0985e0bc6772cd616bbf7bd8eff08393.jpg

20220714211031_1.thumb.jpg.4c983ee95683dcb6525f54782c08755e.jpg

 

Make sure to put BeatPartners.dll and BeatPartners.ini and BeatPartners.pdb into \Plugins\LSPDFR folder.

Make sure to have the latest version of RageNativeUI installed.

 

Developer API

Spoiler

namespace BeatPartnersAPI
{
    using BeatPartners.API;
    using System.Collections.Generic;
    using System.IO;
    using Rage;

    internal static class BeatPartnersAPI
    {
        private const string DllPath = @"Plugins\BeatPartners.dll";
        private static readonly bool DllExists = File.Exists(DllPath);

        /// <summary>
        /// One more wrapper to prevent <see cref="CanBeUsed"/> from trying to load the BeatPartners assembly.
        /// </summary>
        private static class IsLoadedWrapper
        {
            public static bool IsLoaded => Functions.IsLoaded;
        }

        /// <summary>
        /// Gets whether the API functions can be called.
        /// The 'BeatPartners.dll' must exist and has been loaded by the user.
        /// </summary>
        public static bool CanBeUsed => DllExists ? IsLoadedWrapper.IsLoaded : false;

        public static ushort GetNumberOfBeatPartnersCreatedSinceLoaded => Functions.GetNumberOfCreatedBeatPartners;

        public static int GetNumberOfActiveBeatPartners => Functions.GetNumberOfActiveBeatPartners;

        public static bool IsPlayerMeetingWithAnyPartner => Functions.IsPlayerMeetingWithAnyPartner;

        public static IReadOnlyCollection<Ped> RetrievePossibleEnemiesOfPlayer => Functions.RetrievePossibleEnemiesOfPlayer;
    }
}

 

Take a look at the INI at least once to make sure you are satisfied with the settings. You can also modify the INI values within the in-game plugin menu. 

If you are encountering crash upon ForceDuty, then install the latest version of RageNativeUI.

 

FYI: This plugin has been tested on vanilla settings (no additional plugins, only LSPDFR). There were minimum amount of crashes experienced. Also, due to a specific lack of feature in the LSPDFR API, units will not respond to callout locations, but will respond to the player's location and follow the player. They should be able to respond to the callout location in a future update.


Special thanks to:

@NoNameSet
LSPDFR Developer Discord

Edited by OJdoesIt

What's New in Version 1.0.0

Released

  • Cycling through Load Preset Data automatically loads the respective preset without needing to press the option
  • Allowed additional models to be added to the INI (also checks if they are appropriate models e.g. is a vehicle or ped)
  • Allowed additional presets to be added to the INI, and saved to the INI from the menu
  • Properly loads addon vehicles
  • Added dependency checker to verify RageNativeUI is installed
  • Added radio traffic monitor to prevent overload of notifications clogging the screen (e.g. 12 notifications of units responding to the pursuit)
  • Added monitoring of shooting to allow partners to respond if suspect(s) within assigned zone or within proximity
  • Added hotkey (double-press and hold control) to conveniently request partners to respond, outside of the main menu
  • Implemented feature where partner's blip will flash when they become involved in an incident (e.g. shooting, injured)
  • Added one-click option to immediately create partners based upon the number of defined presets
  • Implemented a buddy messaging system where your partners will send random text messages and ask to meetup for a smoke/drink break
  • Added option to remove all beat partners from Remove Partner menu item
  • Added ambient pursuit listener that'll have partners initiate random pursuits
  • Added option for newly created partners to immediately respond to any active events
  • Resolved crash when partner is used by LSPDFR to transport a suspect
  • Added API functions and events to be used for developers

Short Description

beat partners patrol

User Feedback

Recommended Comments

OJdoesIt

Members Author

On 8/27/2022 at 10:00 PM, javier0911 said:

can your partner follow you to calls? or in pursuit progress ? or help you search for a suspect? 

Yes, if they are assigned to the call, they will follow you to the call. If they are assigned to the pursuit, then they will pursue and search for the suspect(s).

DJHonore

Members

Can't seem to figure out how to open the plugin menu, anyone able to assist?

OJdoesIt

Members Author

7 hours ago, DJHonore said:

Can't seem to figure out how to open the plugin menu, anyone able to assist?

By default, keys are CTRL and R. 

DJHonore

Members

(edited)

3 hours ago, OJdoesIt said:

By default, keys are CTRL and R. 

I tried ctrl r but it does nothing in-game

Edited by DJHonore

Is it normal that when you spawn the partner it spawns several and not just one?

OJdoesIt

Members Author

On 9/9/2022 at 12:37 PM, 31 C.Kylou Corason said:

Is it normal that when you spawn the partner it spawns several and not just one?

You must be selecting Create Partners Now option instead of the Create Partner option. The first one spawns all partners based upon the number of predefined presets. The second spawns the partner based upon the selected menu options.

TJster

Members

(edited)

Is it possible to have a partner patrol a certain area but have them stay in pursuits even if it leaves their assigned area when set to onlytozone? Great mod by the way!

Edited by TJster

TJster

Members

9 hours ago, TJster said:

Is it possible to have a partner patrol a certain area but have them stay in pursuits even if it leaves their assigned area when set to onlytozone? Great mod by the way!

To update, I was able to pull this off somewhat by using the ambient backup feature in Rich's Police Enhancements plugin. Though, once the partner returns to their assigned area I get the beat partner abruptly removed notification.

JBin818

Members

I see in the title, the last word is Supervisor.  What and how do you use a supervisor?  I don't see it in the description.  

FLDJF713

Members

1: I've got into shootings and my units still only show up code 2. Upon arriving on scene, they will THEN activate their lights and get out. Unsure if there is any correlation with Ultimate Backup causing that behavior?

2: Can you further describe the method to specifically have the Beat Partners as backup? I see the key option in the settings, but I haven't been able to get it to trigger no matter what. I'd prefer using them over Ultimate Backup.

3: Regarding the units joining a callout, you may be able to dive into Ultimate Backup's code with permission. Note that if you put a user-set waypoint on the map and request ANY units from UB, it will send the units to that defined area over your own location. I often do that if a robbery is in progress so other units arrive with me rather than after me. 

Eternalplay

Members

On 10/17/2022 at 8:39 PM, JBin818 said:

I see in the title, the last word is Supervisor.  What and how do you use a supervisor?  I don't see it in the description.  

I'm wondering this too

luckyjohnny1

Members

i enjoy this mod although sometimes the partners get stuck and freeze and when i request for backup from the partner (not ub) in the menu lspdfr crashes

Lively

Members

good mod but crashes my game or lspdfr after like 10 minutes 

On 7/16/2022 at 9:30 AM, Lapd Code 3 said:

will this work with add on cars and eup npc's?

yes it does

Lapd Code 3

Members

8 hours ago, Lively said:

good mod but crashes my game or lspdfr after like 10 minutes 

yes it does

and its still compatible w new version of rage and lspdfr

Lively

Members

On 11/16/2022 at 11:27 PM, Lapd Code 3 said:

and its still compatible w new version of rage and lspdfr

really it crashes my game everytime i start it 

Lapd Code 3

Members

1 hour ago, Lively said:

really it crashes my game everytime i start it 

damn i was hoping it would still be useable

Lively

Members

21 hours ago, Lapd Code 3 said:

damn i was hoping it would still be useable

it might still be, my reason could be the other mods could not be compatible with it  

Jaime Serrano

Members

Do you have plans in the future to be able to make the peds wear the EUP clothes, if so, it will be great, and great work so far

 

Does anyone have a problem with the game crashing when asking a partner to respond to a call? If not, then what am I doing wrong?

770fs

Members

(edited)

gone be new update soon ? 🤨

Edited by 770fs

Sagx

Members

It is a good mod with many functions, it needs love from the owner.

JCache4202

Members

(edited)

I have provided my Rage log. For some reason, every time I push the "request partners to callout" button it crashes LSPDFR entirely. How do I fix this?

RagePluginHook.log

On 1/5/2023 at 10:52 PM, Nameless New Guy said:

Does anyone have a problem with the game crashing when asking a partner to respond to a call? If not, then what am I doing wrong?

Yup, I do. It crashes LSPDFR when I push the "request to callout" button. Did you find a fix?

Edited by JCache4202

On 1/21/2024 at 4:10 AM, JCache4202 said:

I have provided my Rage log. For some reason, every time I push the "request partners to callout" button it crashes LSPDFR entirely. How do I fix this?

RagePluginHook.log 854.58 kB · 3 downloads

Yup, I do. It crashes LSPDFR when I push the "request to callout" button. Did you find a fix?

 

Nope. Started using backup AI. Also, I'm so sorry it me this long to answer your question. I've been busy and hardly check these forums like I need to.

Create an account or sign in to comment

Latest Mods

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.