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.

AIDispatch (For Policing Redefined) 0.83 Alpha

(0 reviews)

1 Screenshot

Group 1 copy 2.png

AIDispatch - AI Voice Dispatch for Policing Redefined

AIDispatch is an experimental AI-powered voice dispatch plugin for LSPDFR.

This mod was heavily inspired by Grammar Police. Grammar Police has been one of the most useful LSPDFR plugins for years, but for me personally it was becoming difficult to use because of accent recognition and strict phrase/keyword requirements. I wanted something that felt similar in purpose, but that could understand more natural speech instead of needing very specific commands.

AIDispatch uses AI to listen to your radio request, understand what you are trying to do, and trigger the matching Policing Redefined dispatch action.

The goal is simple:

Talk to dispatch naturally.

Instead of memorizing exact phrases, you can say things in a more normal way and the AI will try to understand the intent. For example, if you ask for medical help, backup, a plate check, a tow truck, a ped check, or say that you are going 10-8, busy, code 6, on scene, on a traffic stop, etc., AIDispatch will try to pick the correct dispatch action.

Current features include(basically everything you can do with Grammar police):

  • Natural voice dispatch requests

  • Gemini AI voice understanding

  • Policing Redefined dispatch integration

  • Plate checks

  • Ped checks

  • Vehicle checks

  • Backup requests

  • Traffic stop backup

  • K9 requests

  • EMS requests

  • Fire department requests

  • Tow requests

  • Coroner requests

  • Animal control requests

  • Traffic control requests

  • Pursuit-related requests

  • 10-code/status commands

  • Set yourself available/unavailable for LSPDFR calls

  • Code 4, code 5, code 6, 10-8, 10-6, 10-7, on scene, responding, traffic stop, transporting, etc.

  • Optional radio key-up/key-down sounds

  • Logs for testing and bug reports

This mod was also inspired by NPCAI 3.0 and the way AI can make LSPDFR feel more natural and immersive. AIDispatch is not connected to NPCAI, but NPCAI helped inspire the idea of using AI to understand what the player is saying instead of relying only on fixed keywords.

Important:

This is a public alpha/test build. Bugs are expected.

Right now AIDispatch is built around Policing Redefined. My goal for the future is to expand compatibility with other popular LSPDFR plugins, including Stop The Ped and Ultimate Backup, so players who do not use Policing Redefined can still benefit from AI-powered dispatch controls.

Requirements:

  • GTA V Legacy

  • RAGE Plugin Hook

  • LSPDFR

  • Policing Redefined installed and working

  • A Gemini API key

  • Microphone

  • Internet connection

You can get a Gemini API key here (free):
https://aistudio.google.com/api-keys

Grammar Police is not required. For testing, I recommend disabling Grammar Police so you know which plugin is responding to your voice commands.

Ped checks:

Ped checks rely on Policing Redefined. In some cases, the ped may need to be identified through Policing Redefined before PR allows a dispatch ped check.

Testing / bug reports:

AIDispatch creates a log file here:

Grand Theft Auto V Legacy\plugins\LSPDFR\AIDispatch\AIDispatch.log

If something does not work, please send the log and include:

  • What you asked dispatch to do

  • What happened

  • What you expected to happen

  • Whether Policing Redefined can do the same action manually

Your Gemini API key is redacted in the log.

This is still early, but the goal is to create a modern AI-powered voice dispatch system for LSPDFR that feels more natural, more flexible, and easier to use during patrol.

V0.83 updates:

-Added traffic control voice support:
-stop traffic
-slow traffic
-resume/clear traffic

-Added support for more pursuit-related dispatch requests:
-pursuit backup
-air/helicopter support
-spike strips
-PIT authorization

-Removed the experimental voice-started chase vehicle targeting/blip system.

-Removed the unreliable “show me in pursuit” chase-start feature that tried to create or target LSPDFR/PR pursuits.

-AIDispatch now focuses on dispatch support during pursuits instead of trying to replace Policing Redefined’s manual right-click + T pursuit targeting.

-Improved ped check targeting.

-Improved plate check handling.

-Improved traffic stop backup handling.

-Improved command/action result logging.

-Added silent-failure protection: the log now shows whether a command was understood, attempted, succeeded, failed, or invoked but could not be verified.

-Added clearer failure handling when AIDispatch understands the request but the backend action cannot be completed.

-Added stricter AI prompt handling to reduce false positives from unclear phrases.

-Reduced cases where vague or badly transcribed phrases trigger the wrong action.

-Added better 10-9 handling for unclear or low-confidence commands.

-Added multiple possible scanner audio responses instead of always using the same basic copy response.

-Added random scanner audio selection when multiple audio names are configured.

-Improved unload safety to reduce issues when unloading/reloading LSPDFR.

-Updated DLL assembly version metadata so it no longer shows as 0.0.

-Added/confirmed Newtonsoft.Json.dll as a required dependency for Gemini API processing.

-Newtonsoft.Json.dll should now be included with the mod package and should stay next to AIDispatch.dll in plugins\LSPDFR.

-General stability and cleanup from the v0.77-v0.82 test builds.

Edited by boboediting

What's New in Version 0.83 Alpha

Released

Pasted content

AIDispatch v0.83 update notes

-Added a new customizable radio wave HUD/widget.

-Added an F12 in-game editor menu for the radio widget.

-Added separate editor controls for:
-radio wave/widget position and size
-top radio text position and size
-PIT authorization text position and size
-wave animation position and size

-Added larger editor help/tutorial text with black outline for better readability.

-Added editor safety controls so the player cannot accidentally aim, draw weapons, or fire while editing the widget.

-Added PIT maneuver authorization system.

-PIT authorization can now be requested through dispatch.

-PIT authorization has configurable timing/chance values in the ini.

-PIT authorization is unlikely early in a pursuit and can become guaranteed after the configured timer.

-PIT status can remain visible during pursuit/PIT state even when the voice radio wave is hidden.

-Added configurable PIT widget text for authorized/unauthorized states.

-Added traffic control voice support:
-stop traffic
-slow traffic
-resume/clear traffic

-Added support for more pursuit-related dispatch requests:
-pursuit backup
-air/helicopter support
-spike strips
-PIT authorization

-Removed the experimental voice-started chase vehicle targeting/blip system.

-Removed the unreliable “show me in pursuit” chase-start feature that tried to create or target LSPDFR/PR pursuits.

-AIDispatch now focuses on dispatch support during pursuits instead of trying to replace Policing Redefined’s manual right-click + T pursuit targeting.

-Improved ped check targeting.

-Improved plate check handling.

-Improved traffic stop backup handling.

-Improved command/action result logging.

-Added silent-failure protection: the log now shows whether a command was understood, attempted, succeeded, failed, or invoked but could not be verified.

-Added clearer failure handling when AIDispatch understands the request but the backend action cannot be completed.

-Added stricter AI prompt handling to reduce false positives from unclear phrases.

-Reduced cases where vague or badly transcribed phrases trigger the wrong action.

-Added better 10-9 handling for unclear or low-confidence commands.

-Added multiple possible scanner audio responses instead of always using the same basic copy response.

-Added random scanner audio selection when multiple audio names are configured.

-Improved unload safety to reduce issues when unloading/reloading LSPDFR.

-Updated DLL assembly version metadata so it no longer shows as 0.0.

-Added/confirmed Newtonsoft.Json.dll as a required dependency for Gemini API processing.

-Newtonsoft.Json.dll should now be included with the mod package and should stay next to AIDispatch.dll in plugins\LSPDFR.

-General stability and cleanup from the v0.77-v0.82 test builds.


Short Description

AI-powered voice dispatch for LSPDFR that understands natural speech and triggers Policing Redefined dispatch actions.

AI disclosure

The author has disclosed that AI tools were used in creating the following aspects of this file:

  • Description
  • Mod and Mod Content (Substantial)

I'm absolutely terrible at codding. I always use AI to troubleshoot, help me create, give me feedback and ideas on what to upload next and how to keep a pase for the future updates.

User Feedback

Recommended Comments

nova2727

Members

is this compatible with npcai

boboediting

Members Author

8 minutes ago, nova2727 said:

is this compatible with npcai

yes it is! I use it in my game and it works great with it.

ThatGuySens

Members

24 minutes ago, Doidao said:

Can you make a video showing the mod?

Just download and use it

boboediting

Members Author

(edited)

9 minutes ago, ThatGuySens said:

Just download and use it

34 minutes ago, Doidao said:

Can you make a video showing the mod?

yeah I'll try to work on that today. If you want an idea of what it does, just take a look at what grammar police does and the mod works the same except theres less restriction on phrasing since AI interprets what you're saying. So you can formulate however you want and the AI should understand what you are asking

Edited by boboediting

maekbfryhe

Members

I downloaded the mod with all the requirements launched it and at first it said "didn't recognize or smth" and then just nothing ive reinstalled put the API again and still. nothing just blank. like it didn't even hear me XD

AIDispatch.log

manu450

Members

(edited)

I got to say wow....You did a good job on this. A little more precise voice feedback from dispatch would make this a really good alternative to GP. It actually works really well. I'll play with it a little more and post a review shortly. Please add shoulder animation to the PPT.

Edited by manu450

FlyBullx

Members

work other language ?

manu450

Members

(edited)

RagePluginHook.log

Lspdfr crashes when unloading the Lspdfr plugin, and you can't reload Lspdfr again.

Edited by manu450

JMMA2506

Members

lo acabo de provar y tiene muy buena pinta solo hay que pulirle un par de cosas como la animacion de radio y poder hablar en otro idioma (en mi caso el español )

no se si sera por el mod pero me acaba de crashear al solicitar transporte de detenidos de todos modos voy a verificar a que se deve (gran trabajo y gran mod este mod puede llegar a ser muy grande )

Vagneto

Members

You've delivered what you've described so far. Good job and thanks for sharing.

boboediting

Members Author

1 hour ago, maekbfryhe said:

I downloaded the mod with all the requirements launched it and at first it said "didn't recognize or smth" and then just nothing ive reinstalled put the API again and still. nothing just blank. like it didn't even hear me XD

AIDispatch.log

hey seems like you might be tapping the key instead of holding it. You have to lhold the keybind the entire time you are speaking. And if that dosent work make sure the mic you want to use is the one windows is using by defauilt.

43 minutes ago, Vagneto said:

You've delivered what you've described so far. Good job and thanks for sharing.

appreciate it thanks!

1 hour ago, manu450 said:

RagePluginHook.log

Lspdfr crashes when unloading the Lspdfr plugin, and you can't reload Lspdfr again.

Thanks, It should not affect normal gameplay, but it can throw an RPH/LSPDFR exception when unloading/reloading LSPDFR. I’ll patch it so the AIDispatch main loop shuts down cleanly before LSPDFR unloads.

1 hour ago, manu450 said:

I got to say wow....You did a good job on this. A little more precise voice feedback from dispatch would make this a really good alternative to GP. It actually works really well. I'll play with it a little more and post a review shortly. Please add shoulder animation to the PPT.

Thank you. Right now the reply from dispatch are really bland I know and this is one of the next step for the mod for sure. I appreciate the feedback thank you!

boboediting

Members Author

2 hours ago, Doidao said:

Can you make a video showing the mod?

1 hour ago, Michael21107 said:

@boboediting Hey, just a heads up that the assembly verison of the plugin is 0.0 instead of 0.76.

thank you will fix in the next update

manu450

Members

Calling a pursuit doesn't blip the vehicle as the grammar police do. Idk if you can do something about that.

boboediting

Members Author

(edited)

9 minutes ago, manu450 said:

Calling a pursuit doesn't blip the vehicle as the grammar police do. Idk if you can do something about that.

Thanks, I will try and add this to the next update for now keep using GR alongside my mod so you can blip the cars. I'm having a hard time figuring how to blip the car and trigger the LSPDFR chasse state at the moment.

Edited by boboediting

manu450

Members

I found a bunch of sound files in my GP and PR folder and added them for various responses from the dispatcher. It works really well.

boboediting

Members Author

16 minutes ago, manu450 said:

I found a bunch of sound files in my GP and PR folder and added them for various responses from the dispatcher. It works really well.

thats awsome! I will add better responses down the line for sure

nova2727

Members

It’s a shame you can’t talk to dispatch like a normal one instead of having the old dispatch come over again

boboediting

Members Author

7 minutes ago, nova2727 said:

It’s a shame you can’t talk to dispatch like a normal one instead of having the old dispatch come over again

That right there is the end goal of the mod. I want to make it just like NPCAI where you can have a back and forth with the dispatcher. Keep in mind this is the ALPHA version of the mod.

impliedstone

Insiders

CHANGE DISPATCH KEY DOES NOT WORK

I CHANGED THE DISPATCH KEY TO 0 ANMD IT DOES NOT WORK I CANT GET THE MOD TO DO ANYTHING

WHY OH WHY DO ALL THESE AI DISPATCH MODS NEVER WORK

boboediting

Members Author

(edited)

20 minutes ago, impliedstone said:

CHANGE DISPATCH KEY DOES NOT WORK

I CHANGED THE DISPATCH KEY TO 0 ANMD IT DOES NOT WORK I CANT GET THE MOD TO DO ANYTHING

WHY OH WHY DO ALL THESE AI DISPATCH MODS NEVER WORK

No image preview

Keys Enum (System.Windows.Forms)

Specifies key codes and modifiers.

This is the keybinds my mod uses. use the codes on the left of the list to change your keybind... for numpad 0 use this "DispatchTalkKey=NumPad0" for 0 on the number rows use: DispatchTalkKey=D0 . My mod should work just fine.

Edited by boboediting

manu450

Members

(edited)

1 hour ago, nova2727 said:

It’s a shame you can’t talk to dispatch like a normal one instead of having the old dispatch come over again

I suggest you download the Blue Line Vibe dispatcher. Also, all the dispatcher responses are mostly from your Lspdfr audio REPORT_RESPONSE folder. You can change any of these files to any audio line you prefer. As long as you add them to your REPORT_RESPONSE folder located in your Lspdfr/Audio/Scanner. Make sure the path matches the one you will copy into your AI Dispatch.ini file.

Edited by manu450

M Wells

Members

56 minutes ago, boboediting said:
No image preview

Keys Enum (System.Windows.Forms)

Specifies key codes and modifiers.

This is the keybinds my mod uses. use the codes on the left of the list to change your keybind... for numpad 0 use this "DispatchTalkKey=NumPad0" for 0 on the number rows use: DispatchTalkKey=D0 . My mod should work just fine.

I used RMenu (right ALT) and works great for me. So it looks like,

[Controls]

DispatchTalkKey=RMenu

HoldToTalk=true

Tee6789

Members

Hey friend, just having a bit of trouble. The plugin seems to be launching and working, however I keep getting "repeat transmission" error. Somethng I'm missing? Everything seems to be in the right file path, i have the correct mic set, as well as the API key.

Create an account or sign in to comment

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.