![]()
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
Short Description
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.
Grammar Police - Heavy inspiration for the original voice-dispatch concept
NPCAI 3.0 - Inspiration for using AI voice understanding in LSPDFR gameplay
Policing Redefined - Required dependency and dispatch-action framework used by AIDispatch
Google Gemini - AI voice understanding API used by the plugin
Recommended Comments
Create an account or sign in to comment