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

enzo56

Members

(edited)

i've been waiting for this kind of mod a very long time,but it really has to be able to be used with plugins,because nobody plays in vanilla 😉  good job! 

Edited by enzo56

LukasMarks09

Members

6 hours ago, Lapd Code 3 said:

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

I have the same question 

OJdoesIt

Members Author

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

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

I'm not sure. I only do testing with just bare LSPDFR. The addon cars may work. However, may not with EUP as it uses whatever models are defined in the INI. I can make updates as necessary to get it to work with addon cars and/or EUP if they don't work.

sledge5557

Members

i THIS WILL BE A GREAT MOD BUT FOR KNOW I CAN CONFIRM I DOEAS NOT WORK EUP,EXTRA CARS, AND ULTIMATE BACK-UPBUT IT WORKS FINE WITHOUT ANY MODS.

 

KEEP UP THE GREAT WORK, THIS MOD WILL BE GREAT!!!!

 

OJdoesIt

Members Author

15 hours ago, sledge5557 said:

i THIS WILL BE A GREAT MOD BUT FOR KNOW I CAN CONFIRM I DOEAS NOT WORK EUP,EXTRA CARS, AND ULTIMATE BACK-UPBUT IT WORKS FINE WITHOUT ANY MODS.

 

KEEP UP THE GREAT WORK, THIS MOD WILL BE GREAT!!!!

 

What compatibility were you testing for with ultimate backup?

sledge5557

Members

BEJOLJO, ultimate back-up,stop the ped, compulite,+ els police cars,but what happens is the game crashes as soon as i go on duty wich does'nt happen in a game without any mods.

 

Sorry for my english french canadian !!!!+ as i say your mods have always been great so kee-on !!!!

 

OJdoesIt

Members Author

10 minutes ago, sledge5557 said:

BEJOLJO, ultimate back-up,stop the ped, compulite,+ els police cars,but what happens is the game crashes as soon as i go on duty wich does'nt happen in a game without any mods.

 

Sorry for my english french canadian !!!!+ as i say your mods have always been great so kee-on !!!!

 

I'm still not understanding. Get it to crash again and send me that log file.

Cut56

Members

Hello, 

 

I wanted to try to play it because this mod seems awesome to me.

But I also have a crash after the F4 "FORCEDUTY" manipulation. There is a problem occuring and unable to use the mod, some other mods also not working. I have to turn off the game.

 

Thank you 

 

OJdoesIt

Members Author

50 minutes ago, Cut56 said:

Hello, 

 

I wanted to try to play it because this mod seems awesome to me.

But I also have a crash after the F4 "FORCEDUTY" manipulation. There is a problem occuring and unable to use the mod, some other mods also not working. I have to turn off the game.

 

Thank you 

 

Upload your RagePluginHook log

iAintADemon

Members

Hello, i have the same as Cut56, whenever i go on Duty, Lspdfr crashes. Tried to forceduty & Go to the station.

RagePluginHook.log

OJdoesIt

Members Author

1 hour ago, Cut56 said:

Hello, 

 

I wanted to try to play it because this mod seems awesome to me.

But I also have a crash after the F4 "FORCEDUTY" manipulation. There is a problem occuring and unable to use the mod, some other mods also not working. I have to turn off the game.

 

Thank you 

 

 

8 minutes ago, iAintADemon said:

Hello, i have the same as Cut56, whenever i go on Duty, Lspdfr crashes. Tried to forceduty & Go to the station.

RagePluginHook.log 214.81 kB · 0 downloads

Looks like you need to install the latest version of RageNativeUI v1.9 https://github.com/alexguirre/RAGENativeUI/releases/tag/1.9

OJdoesIt

Members Author

21 hours ago, sledge5557 said:

i THIS WILL BE A GREAT MOD BUT FOR KNOW I CAN CONFIRM I DOEAS NOT WORK EUP,EXTRA CARS, AND ULTIMATE BACK-UPBUT IT WORKS FINE WITHOUT ANY MODS.

 

KEEP UP THE GREAT WORK, THIS MOD WILL BE GREAT!!!!

 

It loads addon vehicles for me.

sledge5557

Members

Yep me again here is my rage loog,and know it crashes my lspdfr on start-up, but remember i have a heavely mod

ded game over 75 police,firre,ambulance,shaders.call outs,eup 9.4,etc.

RagePluginHook.log

sledge5557

Members

Thanks again i always forget to check that rage native ui,so the mod works great!!!!! will pictures soon.

jdftuj

Members

Hello, my game crashes everytime I attach a unit to a call.RagePluginHook.log I don't know if this is right file I send but here is log.

iAintADemon

Members

My game also crashes each time that i attach a unit to a call.

 

Start up doesnt crash after the rage update, and they patrol flawless.

 

Only issue i see for now is the crash when they respond to a call. I tried a few calls from different creators.

 

 

RagePluginHook.log

virxuis

Members

So far, I think this is a very great mod however there are some issues/bugs that are crucial for gameplay.
I wouldn't say EUP is a big deal but having partners engage in battle is very important since they will not do anything if you're being shot at or stabbed.

OJdoesIt

Members Author

18 hours ago, jdftuj said:

Hello, my game crashes everytime I attach a unit to a call.RagePluginHook.log I don't know if this is right file I send but here is log.

 

7 hours ago, iAintADemon said:

My game also crashes each time that i attach a unit to a call.

 

Start up doesnt crash after the rage update, and they patrol flawless.

 

Only issue i see for now is the crash when they respond to a call. I tried a few calls from different creators.

 

 

RagePluginHook.log 183.79 kB · 3 downloads

For now, just set RespondToCallouts to Never. This crash will be resolved in next update. Also, just an FYI, they won't respond to the callout locations but to wherever the player is. The reason is that LSPDFR doesn't have the code for me to obtain the callout location. This should be fixed whenever LSPDFR does receive an update. So the workaround is to have them respond to the player.

1 minute ago, virxuis said:

So far, I think this is a very great mod however there are some issues/bugs that are crucial for gameplay.
I wouldn't say EUP is a big deal but having partners engage in battle is very important since they will not do anything if you're being shot at or stabbed.

Them shooting at people has worked flawlessly for me. 

Try this: go to the grove street area at night and start shooting at a random gangmember. You should start seeing every nearby gangmember attacking you. See if the units will engage those gangmembers.

virxuis

Members

5 minutes ago, OJdoesIt said:

 

Them shooting at people has worked flawlessly for me. 

Try this: go to the grove street area at night and start shooting at a random gangmember. You should start seeing every nearby gangmember attacking you. See if the units will engage those gangmembers.

I'll re install and try it out again.

Cut56

Members

Hello, 

 

Thank you, it's ok for me the plugin working. 

 

Thanks

Abenn

Members

Plugin not working for me.. pressing the keybinds doesn't do anything.. I have the latest RageUI and tried changing keybinds to F12 and F5 but still no menus opening

iAintADemon

Members

On 7/21/2022 at 6:07 PM, Abenn said:

Plugin not working for me.. pressing the keybinds doesn't do anything.. I have the latest RageUI and tried changing keybinds to F12 and F5 but still no menus opening

Did you place everything in plugins - lspdfr? And try pressing Alt while pressing f12 or f5. That worked for me. Not sure what for keyboard you have.

Abenn

Members

8 hours ago, iAintADemon said:

Did you place everything in plugins - lspdfr? And try pressing Alt while pressing f12 or f5. That worked for me. Not sure what for keyboard you have.

I will try I have a SteelSeries APEX 3

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.