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

Abenn

Members

Works now! But why is my Request Backup always in gray?

OJdoesIt

Members Author

20 hours ago, Abenn said:

Works now! But why is my Request Backup always in gray?

It becomes enabled once you get in a pursuit, traffic stop, callout, or shooting. 

griffy

Members

(edited)

Here you go in the form of feedback works great with other mods. The script had an issue with the shooting task. No issues other than that i have been using it since its release great job.

RagePluginHook.log

Edited by griffy

Nemesisx101

Members

(edited)

Hopefully you’ll consider randomised pedprops (I  appreciate you randomising uniform/head variation— goes a long way) and adhering to LSPDFR callsigns with actual audio like ambientaicallouts— basically the same concept— instead of current format. Great potential, very impressive. Well done! 

Edited by Wolfx101

OJdoesIt

Members Author

5 hours ago, Wolfx101 said:

Hopefully you’ll consider randomised pedprops (I  appreciate you randomising uniform/head variation— goes a long way) and adhering to LSPDFR callsigns with actual audio like ambientaicallouts— basically the same concept— instead of current format. Great potential, very impressive. Well done! 

You know you can modify the callsigns yourself to whatever you want them to be.

Nemesisx101

Members

(edited)

6 hours ago, OJdoesIt said:

You know you can modify the callsigns yourself to whatever you want them to be.

I know but I’d like to hear beat partners communicate with dispatch and vice versa. Audio really elevates the presentation. You should collaborate with Zip (dev of ambientaicallouts), apparently he’s releasing a big update soon; your plugin would tie-in nicely, like your heli one. 

Edited by Wolfx101

OJdoesIt

Members Author

14 hours ago, Wolfx101 said:

I know but I’d like to hear beat partners communicate with dispatch and vice versa. Audio really elevates the presentation. You should collaborate with Zip (dev of ambientaicallouts), apparently he’s releasing a big update soon; your plugin would tie-in nicely, like your heli one. 

I'll have to see because others may not use the in-game callsign format, so then the audio won't really match.

SpartanGaming

Members

love it so far however for immersion sake is there any plan on adding Eup peds? if even possible of course but so far it's a great mod and i'm currently testing it out, also this is a great plugin for everyone who rolls as a SuperVisor(myself) as you have eyes on your units at all times depending on how many you use just wished they did more than just driving tho

MegatronxDoI

Members

Was the backup request on callout fixed? LSPDFR crashed from me doing so and right after the game crashed.

OJdoesIt

Members Author

On 8/7/2022 at 7:33 AM, SpartanGaming said:

love it so far however for immersion sake is there any plan on adding Eup peds? if even possible of course but so far it's a great mod and i'm currently testing it out, also this is a great plugin for everyone who rolls as a SuperVisor(myself) as you have eyes on your units at all times depending on how many you use just wished they did more than just driving tho

No EUP support as of yet.

12 hours ago, MegatronxDoI said:

Was the backup request on callout fixed? LSPDFR crashed from me doing so and right after the game crashed.

It is fixed to where it won't crash, but the units will not drive to the callout location since LSPDFR doesn't have the support to give that position to developers. So they units will just drive to and follow the player.

Sagx

Members

I like your plugin, however when I request "Requesting Backup" to all units it just crashes and ends the mod.

222.png

OJdoesIt

Members Author

5 hours ago, Sagx said:

I like your plugin, however when I request "Requesting Backup" to all units it just crashes and ends the mod.

 

This will be fixed in next update. As for now, just don't request backup during callouts.

TripledDoesMC

Members

Good day! Which key opens the menu in the game?

OJdoesIt

Members Author

4 hours ago, TripledDoesMC said:

Good day! Which key opens the menu in the game?

By default, it's CTRL and R

davidchase911

Members

(edited)

I really like this plugins!

please make more update for this.

And can you add text on screen when i request backup look like " (me) requesting backup ! " 

 

Edited by davidchase911

Turma

Members

(edited)

Hi and thank you for an awesome mod.

 

I was wondering if it is possible in the future to have more than one member backup units? I was thinking of having a SWAT unit roaming around, to always respond on shootings. Would be nice if it had more than one officer in the vehicle.

 

And furthermore, if you could preset livery as well. For example I have a nice Lenco Bearcat which works fine with the mod, but sometimes spawns with Sheriff livery instead of LSPD livery, and vice versa. 

Edited by Turma

OJdoesIt

Members Author

37 minutes ago, Turma said:

Hi and thank you for an awesome mod.

 

I was wondering if it is possible in the future to have more than one member backup units? I was thinking of having a SWAT unit roaming around, to always respond on shootings. Would be nice if it had more than one officer in the vehicle.

 

And furthermore, if you could preset livery as well. For example I have a nice Lenco Bearcat which works fine with the mod, but sometimes spawns with Sheriff livery instead of LSPD livery, and vice versa. 

Yes, I will try to implement in the next update.

Ricky001

Members

Hi, great plugin so far, would LOVE to see support for EUP peds tho.

However, in the INI file, there are 2 instances of Model8 under PedModels set to s_m_m_snowcop_01 and s_f_y_ranger_01 ... was wondering whether it was intentional. Can it be an issue in stability? Is it safe to rename the last model as Model9 (and can this be done to add more models likewise)?

I have tried selecting partners with either of those models in game and everything seems to work as expected as of now.

davidchase911

Members

(edited)

Known Bugs:

 

1) When requesting backup unit for callout, it's crash plugin lspdfr  .i know you fixed it. but this is one of bug i found. And EUP requested , can you add the extra setting for uniform, hat , vest , glass etc... ) 😄

2) When Requesting Backup as normal basic, they just respond as Code 2 , no light and siren and they has came to my location so slow. When they're on scene. they always follow me so close, can you add some aimnation like "radio talk style, stand and watching, etc,...."

3) When Requesting backup, it's not show text message and Radio Sound or something like that. The Silen response it's not real 😄 You Can Add your sound if the audio won't really match as you said on top commented

4) When i tazed some suspect, and ( Partner who set as shooting auto request) ready shoot my suspect for no reason, i just want to tazed him, i dont want my backup shoot them.

5) When i request backup for shooting, they dont shoot suspects and just change their weapons everytime.  ?

6) I spend so long times to spawn, create my backup partner back when i get in the game, can you make some easy way for it? ( Tired when ever clicked spawn "near location" or something like that ) I know you have the button for spawns all beat partner for one button, but if i want spawn some partner i need, perhaps i do

alternate?  

7) Sometime When Pursuit done , the Color of radar map is gone after chased . Or Sometime my backup is out of pursuit and lost color blip, they just gone and hard to set him back when i'm in pursuit.  And When pursuit, the color blip of my beat partner are gone too, Cant see the difference of who are my beat partner, who it's the AI cops.

8 ) When my beat partner arrested some suspect in custody , my partner said ( will transport suspect) but they're not, they just gone and i was spend time to spawn they again.. lost so much time for that 😄 i think (Stop the Ped plugin make this problem.

9) sometime drop fps a litte bit .. it is? ,maybe yes maybe no..

10) Traffic stop backup , beat partner park their vehicle behind so close of my vehicle, Can you fix more distance?

11) If i Don't set all of my beat partner for "Always pursuit" but i just want some unit i need?, what happend if i dont have enough time to choose my partner for requesting while pursuit happening.? You have any idea for this problems? you can tell me just set "Upon Request" , yea i did do that but it's not impossible . You can tell me just set "Near backup" . Yea i did but ... what happend if no units near my backup while i still wanna backup my beat partner as emergency response ?  yea, Nobody have time to click "Backup as Name)"  because they just response code 2 and it's spend a lot of time ( Show screen choose make me lost suspect while pursuit) .. Sorry for my bad english, hope you know what i mean

 

 

That's all my bug found on your plugin. I really like this Plugin , can you fix it soon ?

One thing i have to say, Can you make a setting for Change color of Name of my Backup? or Can you create the name on top of my car like beat partner for roleplay ? 😄 , Just discriminate like color blip on radar map.

That's Names show on Top of backup officer made me remember the pass when i played SAMP 😄  so i really like your idea.

 

1.png.20cb02e7459a31fbe1acb30a078d734d.png

 

 

Edited by davidchase911

Dont work for me too 😕

OJdoesIt

Members Author

On 8/12/2022 at 10:45 PM, Ricky001 said:

Hi, great plugin so far, would LOVE to see support for EUP peds tho.

However, in the INI file, there are 2 instances of Model8 under PedModels set to s_m_m_snowcop_01 and s_f_y_ranger_01 ... was wondering whether it was intentional. Can it be an issue in stability? Is it safe to rename the last model as Model9 (and can this be done to add more models likewise)?

I have tried selecting partners with either of those models in game and everything seems to work as expected as of now.

That was a typo on my end. You can change one to Model9. And yes, you can add Model10, Model11...Model99 and they will be usable in the game.

11 hours ago, Marrie said:

Dont work for me too 😕

This is too vague to provide any support.

OJdoesIt

Members Author

On 8/14/2022 at 1:15 PM, davidchase911 said:

Known Bugs:

 

1) When requesting backup unit for callout, it's crash plugin lspdfr  .i know you fixed it. but this is one of bug i found. And EUP requested , can you add the extra setting for uniform, hat , vest , glass etc... ) 😄

2) When Requesting Backup as normal basic, they just respond as Code 2 , no light and siren and they has came to my location so slow. When they're on scene. they always follow me so close, can you add some aimnation like "radio talk style, stand and watching, etc,...."

3) When Requesting backup, it's not show text message and Radio Sound or something like that. The Silen response it's not real 😄 You Can Add your sound if the audio won't really match as you said on top commented

4) When i tazed some suspect, and ( Partner who set as shooting auto request) ready shoot my suspect for no reason, i just want to tazed him, i dont want my backup shoot them.

5) When i request backup for shooting, they dont shoot suspects and just change their weapons everytime.  ?

6) I spend so long times to spawn, create my backup partner back when i get in the game, can you make some easy way for it? ( Tired when ever clicked spawn "near location" or something like that ) I know you have the button for spawns all beat partner for one button, but if i want spawn some partner i need, perhaps i do

alternate?  

7) Sometime When Pursuit done , the Color of radar map is gone after chased . Or Sometime my backup is out of pursuit and lost color blip, they just gone and hard to set him back when i'm in pursuit.  And When pursuit, the color blip of my beat partner are gone too, Cant see the difference of who are my beat partner, who it's the AI cops.

8 ) When my beat partner arrested some suspect in custody , my partner said ( will transport suspect) but they're not, they just gone and i was spend time to spawn they again.. lost so much time for that 😄 i think (Stop the Ped plugin make this problem.

9) sometime drop fps a litte bit .. it is? ,maybe yes maybe no..

10) Traffic stop backup , beat partner park their vehicle behind so close of my vehicle, Can you fix more distance?

11) If i Don't set all of my beat partner for "Always pursuit" but i just want some unit i need?, what happend if i dont have enough time to choose my partner for requesting while pursuit happening.? You have any idea for this problems? you can tell me just set "Upon Request" , yea i did do that but it's not impossible . You can tell me just set "Near backup" . Yea i did but ... what happend if no units near my backup while i still wanna backup my beat partner as emergency response ?  yea, Nobody have time to click "Backup as Name)"  because they just response code 2 and it's spend a lot of time ( Show screen choose make me lost suspect while pursuit) .. Sorry for my bad english, hope you know what i mean

 

 

That's all my bug found on your plugin. I really like this Plugin , can you fix it soon ?

One thing i have to say, Can you make a setting for Change color of Name of my Backup? or Can you create the name on top of my car like beat partner for roleplay ? 😄 , Just discriminate like color blip on radar map.

That's Names show on Top of backup officer made me remember the pass when i played SAMP 😄  so i really like your idea.

  1. The crash will be fixed. I'm still not sure about EUP implementation at the moment.
  2. If you have a gun drawn, shooting, in a fight, or vehicle is code 3, then the backup will respond code 3.
  3. I will think about this.
  4. This will be fixed.
  5. That should not be happening. I'm curious if STP is affecting it.
  6. I will look into this.
  7. I will add the option to keep the partner blip during pursuit.
  8. I will look into this.
  9. You would have to do further testing to determine if there are frame drops.
  10. This will be updated.
  11. I will make a way to request a specific unit join the pursuit.
  12. I will consider making nametag text same color as blip color.

cedriclagarde

Members

On 7/17/2022 at 7:00 PM, OJdoesIt said:

hello is it possible to make it so that we can define the number of partners in each patrol car because in europe patrols are never alone in the car thanks

 

OJdoesIt

Members Author

3 hours ago, cedriclagarde said:

 

This will be looked in to.

javier0911

Members

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

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.