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

manu450

Members

(edited)

I am getting an error if I speak just a little too long. AI service error. The remote server returned an error: (429) Too Many Requests. { "error": { "code": 429,...

. Never had that error in the previous version. Help?

AIDispatch.log

Edited by manu450

Jackal1T1

Members

Can you drag and drop all of Blueline dispatche’s audio files into this(as in the ones that would play for grammar police)? Or do you have to “replace” certain audio files with the ones you want from BLD like other comments suggest?

boboediting

Members Author

42 minutes ago, manu450 said:

I am getting an error if I speak just a little too long. AI service error. The remote server returned an error: (429) Too Many Requests. { "error": { "code": 429,...

. Never had that error in the previous version. Help?

AIDispatch.log

that is my fault...I uploaded the update with MY google API key in it so that means everyone has been using my API for an hour and it reached the maximum amount of use...so easy fix, go to the ini file and look for the:

[Gemini]

ApiKey=

and change it to your key again

manu450

Members

(edited)

39 minutes ago, boboediting said:

that is my fault...I uploaded the update with MY google API key in it so that means everyone has been using my API for an hour and it reached the maximum amount of use...so easy fix, go to the ini file and look for the:

[Gemini]

ApiKey=

and change it to your key again

I figure that out lol. I did change it to my API key. The error was still present. Dispatch is having a hard time understanding me. The last build was working fine. This one is almost unplayable. Maybe it is the PTT wav. file partially muting my voice when talking, you think?

AIDispatch.log

Edited by manu450

GoD5p33d666

Members

(edited)

I’m excited to use this mod! Can’t wait for your end game of an actual ai dispatcher to talk with,

One thing, I’m in Australia and we use completely different radio phrases. I see the custom phrases text but it only has a few examples of what I can change. Is there a full list of all commands like eg request_ems_code3, but for every command so I can add all of my Aussie phrases.

I can just tell on stream people are going to be constantly winging like uhhhhh your not in California dude 😂

Can’t wait man!

Edited by GoD5p33d666

GoD5p33d666

Members

I’m excited to use this mod! Can’t wait for your end game of an actual ai dispatcher to talk with,

One thing, I’m in Australia and we use completely different radio phrases. I see the custom phrases text but it only has a few examples of what I can change. Is there a full list of all commands like eg request_ems_code3, but for every command so I can add all of my Aussie phrases.

I can just tell on stream people are going to be constantly winging like uhhhhh your not in California dude 😂

Can’t wait man!

Ok so iv worked out the custom phrases! God daayyuuumm it all works with all of my new phrases. Worked out how to get the list! But now the only thing for me is call-out interface, when I normally push my talk button the plate shows up but now it doesn’t. So I can’t see what plate is showing up in front of me.

And would be nice to see your status whether you are available or on scene etc.

But other than that it’s an absolute masterpiece mate! Can’t wait for more updates!

WickedDreamzX

Members

does blueline dispatch work with this?

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.