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.

AmbientAICallouts 0.9.9.02

(42 reviews)

11 Screenshots

AmbientAICallouts for LSPDFR

Copyright (C) 2021 ziipzaaapM16A4. All rights reserved.

Any unauthorized modification, reverse engineering, or distribution (including re-uploading of any kind) is strictly prohibited.

PLEASE DO NOT  POST A NEGATIVE REVIEW WITHOUT ADDRESSING THE ISSUE AS A COMMENT ON THIS PAGE.

FOR ANY SUPPORT RELATED ISSUES, PLEASE POST A COMMENT ON THIS PAGE.

 

Join our Discord --->   here

Need Help? Open a support ticket --->   here (discord support channel link)

Want Early Access? Become a Patreon! --->   here


AAIC Banner

Update V0.9.9.02 Released
Better late than never.

 

Feature/Function:

AmbientResponse system wich triggers AiCallouts.

- Get police scanner feedback.

--> Units get their own call sign. Less redundancy.
 

AiCallouts can turn into LSPDFR Callouts.

- 6 AiCallouts included.

- 4 LSPDFR Callouts included. ==> execution only by AiCallout
 

RageNativeUI Menu
- Watch over the entire Neighborhood and Start Emergency's and other stuff

   with the convenience of a easy controllable Menu and a big mini map.
- Partial Settings editor

- Settings Save function
 

AiCallout API & documentation. Create your own AiCallouts.

--> reload AiCallouts without reloading LSPDFR.

- GrammarPolice Support: no interruption by Dispatch [Outdated API]

- Heli Assistance Support: Helicopter responding to AiCallouts.

Meet other Units while their Breake

- StandingAmbientAI has been developed to make your units more immersive.

   Meet your colleagues in the street and idle for emergencies.
 

RejectedCalloutAI 

--> If you don't take the call, AI has to Respond

- The Unit will respond to the location of the call you denied.
 

Ressource friendly Cop Car Pool

- Units will only be claimed and persistent while emergency's allowing them to be used by other mods. 

- Units get their persistent Callsign by writing it on the License Plate.
 

Custom Voice Line System (API integration later)

- A Custom Voice Line System that allowed us to implement different available voice lines.
- Brian Watts (Homepage Voice Actor) is a Police Officer on Duty with custom voice lines. He drives 1-Lincoln-35.

 

 

Here is a List of all development demos & other videos:

Spoiler

https://www.youtube.com/watch?v=BMPmnLqKzmE - GTA V : LSPDFR - AmbientAICallouts Plugin demo
https://streamable.com/r58x7h - AAIC - Crime Fighting - development demo 2

https://streamable.com/xk4ey6 - AAIC - RejectedCalloutAI - development demo 3

https://streamable.com/81ehq7- AAIC - Crime Prankcall - development demo 4

https://streamable.com/0c15t2 - AAIC - Crime MVA - development demo 5

https://streamable.com/0xxwc6 - AAIC - Crime Shooting - development demo 6

https://streamable.com/mbpbx3 - AAIC - Heli Assistance support - development demo 7

https://www.youtube.com/watch?v=y6O7oll1BN4 - AmbientAICallouts - Teaser

 

 

 

How to Use:

- Automatic separate AmbientResponse System which triggers AiCallouts.
- The AI will call for Backup if they need you. It will be shown as a LSPDFR Callout.
(you have to be available for calls)
- Attach yourself to an AiCallout

      simply use GrammarPolice and tell dispatch "show me responding in addition"

      or by pressing CTRL + X (can be changed in .ini)

- Menu for AAIC by pressing LCTRL + F8

- You cannot attach yourself to an Rejected LSPDFR Callout from the RejectectedCalloutAI Feature.

- Console Commands for...

    StartRandomAiCallout => Forcing an random AiCallout,
    StartAiCallout AiCalloutName => Forcing an specific AiCallout,

    AbortAllRunningAiCallouts => Aborting/Cleaning up all AiCallout,

    AbortAiCallout FiberNumber => Aborting/Cleanup an specific AiCallout,  

    ReloadAmbientAICalloutSettings => Reloading AmbientAiCallout Settings,
    ReloadAiCalloutPlugins => Reloading the AiCallout dll's from /plugins/LSPDFR/AAIC

 

 

Installation:

Paste everything into your main Grand Theft Auto V folder.

Except for the READ_ME.

 

Requirements:

LSPD First Response.dll
RagePluginHook.dll

 

Recommended Addon:

Grammar Police V1.4.1.3

Heli Assistance V2.4.2

 


API and Documentation:

Create your own AiCallout. We provide a textual and visual documentation and template to easily create an AiCallout.

Learn from existing AiCallouts. OpenSource AiCallouts: https://github.com/ziipzaaapM16A4/Default-AiCallouts-Pack

Use the Template to jump right into development. All necessary and recommended are already there and with comments:
https://github.com/ziipzaaapM16A4/AiC_Example

 

 

 

Please don't forget to rate this plugin afterwards.

if you find a bug then give me the chance to take a look at it before posting a negative rating.

 

 

Attention: AAIC is penetrating the boundaries of GTA V's ability to manage/tasks objects in the GTA world objects. That doesn't mean that its likely to crash. It just means that if objects are to far from the player, GTA is more likely to prioritize things in the near. It can result in object not tasking things in the distance or GTA cleaning themselves up. This is one of the main reason why AiCallouts aborts themselves. So far this Theory could never be approved by senior developers i want to say i've reviewed the code a dozen times, i cannot find a piece of code causing vehicles to go invalid.
We do prevent crashes but we cannot prevent the abort of an AiCallout.
Important Note:
The more mods that are loaded onto the game, the more the instability rises.
Large vehicle packs can greatly reduce an entity's lifetime before it is deleted from the pool by whatever visual or scripted mods.

 

Known Issue:     Please open supportticket on our Discord if you encountered an Error.

- Most of the issues are invalid object errors but they should not lead lspdfr to crash, these errors just give back log.

   The Reason might be older versions of ELS which would despawn police vehicles left alone.
   Visit Changelog from Released June 28, 2024. Version 1.05

- Sometimes if you are to far from an AiCallout the process will sleep until you're nearby due to rage not executing tasks to reduce resource usage. 

 

Edited by ziipzaaapM16A4
removed incompability statement + added PR developer to Credits

What's New in Version 0.9.9.02

Released

0.9.9.02:
- [edit] Supported GrammarPolice version
0.9.9.01:
- [added] #25 Save Settings to .ini Button for RNUI Menu
0.9.9.0:
- [fix] Aborting invalid AiCallout in RNUI leads to crash
- [fix] #24 Replacing "" string with actual no sound file. Workaround
- [improve] ExternalPluginLoader class -> limited Max Version for GrammarPolice due to missing API Feature.
- [added] RageNativeUI Menu
- [added] New Animations to StandingAmbientAI
Default-AiCallouts-Pack:
- Reworked some AICallouts for more Stability

0.9.8.8:
- [added] Additional Radio Voice -> Voice Actor: Brian Watts.
- [added] Multiple Vehicles Response.
- [added] StandingAmbientAI. Units will rest be able to rest around and standingby for incomming calls. 3 Scenarios include.
- [added] Radio Communication 10-8
- [added] Radio Communication On_Scene
  currently only fixed positions. One of them is Pillbox Hill at the Local Fleeca Bank. (Do not stand to close to the bank)
- [fixed] Code 2 driving task.
- [edit] increased probability for an short radio comunitcation when giving call to unit.
- [fix] RCAI fiber crash when resquested unit from lspdfr is not valid.
- [improved] EnterAndDismiss() & AllEnterVehicle(): targeting now correct side of the vehicle before entering vehicle  
- [improved] LSPDFR Callouts: when officer reports help the ai around is only able to respond before the emergency message when player near enough to the call. else they will respond until dispatch requested help. 
Default-AiCallouts-Pack:
- [improved] Shots fired: compleately reworked shotsfired call.
- [added] LSPDFR Unarmed AI Arrest for MVA and Outstanding Warrant. (This feature is very new. I currently cannot handle proberly that the suspect stays on scene)
- [improved] EmergencyCall: increased timespan until unit need to be on scene when responding code 2
API:
- [added] XML which can be loaded by any lint to show what the Function does.
- [added] Multiple Vehicles Response. Calls can now contain a number of required units and AAIC will fill the Units array. -> UnitsNeeded = ...
- [edit] Units are now a type of the struct PatrolUnit(fom AAIC API) containing callsign, officers, voiceline and vehicle.
- [removed] Compability for Old third party AiC plugins. They will be depricated. -> to many changes to the api due to Multiple Vehicle Response.

0.9.8.5:
- [added] Units keep their callsign through callouts
- [added] Unit licensplates are now named like their callsign 
- [added] PlayerCallsign added to .ini setting. Avoid Ai from taking your callsign
- [added] new LSPDFR API: Unit radio sounds for units instead of dispatch sounds for units
- [fixed] Arrival timout when already nearby. 
- [fixed] EnterAndDissmis(): improved task assignment (i tried my best but sometimes gta fakes a task)
- [fixed] All LSPDFR Callouts: improved stability
- [fixed] RejectedCalloutAI: sometimes grabs a unit which is already in a callout when code 2
- [improved] Overall Code Refactor
- And a lot more minor changes.
Default-AiCallouts-Pack:
- All: Added OfficerReportOnScene();
- [fixed] Prankcall: different animations
- [added] OutstandingWarrant: people flee from gunpoint
API:
- [added] documentation XML file with all and up to date API functions

0.9.7.3: 
- fixed random units apearing and not moving when AiCallout has been canceled at Setup() part.
- Added Code 4 Notification when LSPDFR callout ends.
- Added HeliAssistance request probability in the .ini file. Decide yourself how often a Helicopter should get requested by dispatch.
- [fixed] AmbientResponse taking HeliAssistance Helicopter from Player when in use.
- [fixed] RejectedCalloutAI validity check to prevent crashes.
- [fixed] OfficerUnderFire: End(): crash.
- Reduced unnessesary error log when fibers aborts
- Vehicles will never be dismissed now. they will be non-persistent and disapear from itself after time.
- Added Heli request when AAIC-OfficerDown Callout.
- GrammarPolice status handler has been stabilized.
- Key Watcher has been changed.
- And many other big and small changes.
API:

- AiCallouts must now match the MinimumAiCalloutDistance and MaximumAiCalloutDistance

   to prevent beeing aborted by AmbientResponse.

- Added Code3 & Code2 Response difference. ResponseType can now be set in a AiCallout. 
  (Units will drive with lights and siren or normal) (take a look at Example_AiC online at GitHub.com for an Example)
- EnterAndDismiss() overload: can now only dismiss officers.
- EnterAndDismiss(): [fixed] can now dismiss even when original driver doesn't exist anymore and more other validity checks.
- EnterAndDismiss(): [fixed] unit not despawning when officers despawned before entering the vehicle.
- COM_OnScene(): the function which simply calls ai "OnScene" if possible has been fixed.
- IsAiTakingCare(): improved algorithm with probability in percent (take a look at AmbientAICallouts.ini)
Default-AiCallouts-Pack:
- ALL: callout distance self check added.

   Each Default-AiCallout has now its own distance self check to prevent beeing aborted by AmbientResponse due to invalid callout location.
- ALL: Reduced unnessesary error log when fibers aborts.
- Fighting: is now able to handle interaction by the player.
- Example_AiC: more comments and updated Example_AiC.cs
- [fixed] MVA: checking validity before calling LSPDFR functions to prevent crashes.
- Shotfired: Reduced task assignment for the GetInCoverTask.


Short Description

First fully automatic Ambient Emergency System for LSPDFR. You’re not the only cop in San Andreas.

User Feedback

Recommended Comments

ziipzaaapM16A4

Insiders Author

(edited)

On 12/27/2020 at 1:39 AM, dylanlive said:

experiment a bit more - I'm sure you know how confusing it can be to know which is crashing 😛

The more log creation a creator built into the code the easier it becomes. so it depends on the creator. 
------------------
 

On 12/27/2020 at 9:39 AM, NingOfficer said:

Love this, feels a lot better with other cops "on duty" with you. However, the crashes I am getting are making it unplayable. Hope these can be fixed soon. Was thinking about putting just this in with a couple plugins at a time to see what one is causing it, but I'm sure you already know by now.

Currently there are just known and a few problems that repeats themself. I need to find a logical solution for it (because just creating a simple solution will probably open up for new bugs)
-------------------------------

 

On 12/27/2020 at 6:35 PM, BlindGaming said:

Without being asked to, I followed a unit, out of curiosity to see if they actually went anywhere, and sure enough, the unit was responding to a fight in progress. So I assisted and once I arrived on scene, even though I can already interact and arrest the suspects, I was then asked by dispatch (as IU was the closest unit to assist I assume) to assist. Pretty cool not going to lie. 

HOWEVER, are you going to include this mod for the county and highway? As that's the areas I prefer to patrol. Mainly due to the fact that when I replace my EUP the city pretty much disappears. 

- If you follow a unit unasked you have to tell dispatch. if not the plugin will execute as they are alone. interfering then can cause anything depending on the code.
so if you want to follow unasked then tell dispatch "show me responding in addition" or press CTRL+X (see .ini)  so the AiCallout will chose code that is (depends as well on the code) ready for an interaction with the player.
- Since im trying to make these AiCallouts universal to the location an AiCallout can happen everywhere even on the highway. if you are in the same are they will spawn around you. but specific highway AiCallouts are more a thing of community creating AiCallouts.
 -----------------------------------------------

 

On 12/27/2020 at 7:39 PM, TheCanadianDream said:

Can you not force these callouts with callout manager? 

The LSPDFR Callouts from AAIC are not meant to be manually executed. They require an ongoing AiCallout that decides to request the player for backup.
so.... no you cant. 
-------------------------------------------------

 

On 12/27/2020 at 9:43 PM, doctorvita89 said:

hello, I would like to ask if this plugin has interference with normal calls, if any problems have been encountered, and if while I am busy with the calls of this mod, the single normal calls are disabled or I can receive them thanks

 you will still hear other AiCallouts if you are busy but they wont trigger an LSPDFR Callout (that means there are still calls for other officers but none of them should go the way where they need backup).
-------------------------------------------------

 

On 12/28/2020 at 8:18 AM, adam enforcers said:

 When attaching myself to an AI call i responded to the fight callout i subdued both suspects but when i was going to proceed with the investigation the peds and the officers despawned, the same case with the accident call. a few comments i wanted to make on that was when one of the accidents i attached to went 10-8 the drivers got back in there vehicles when they were not drivable. also on another accident the officers left the vehicles there without towing them and the damaged vehicles vanished. also there should be a code 2 and code 3 variation depending on what it is, on the warrant callout officers went code 3. not really realistic to show up like that and spook the suspect.

- yeah i just had  a look into the code and it seemes like there is no code for the situation when you respond in addition. That why they just despawn because they just do what they wanted to do.
- all of the integrated AiCallouts are actually just examples for other developers to make their own AiCallouts.
- i thought about a code 2 and code 3 variation. should be not that hard. i guess we can make that soon. 
-------------------------------------------------

 

On 12/28/2020 at 12:39 PM, LSPDHKG2020 said:

I just installed and tried, once I accepted the Shot Fired Callout, and arrest the suspect, the "Pursuit" page for backup and N manual to terminate the Pursuit is not success, and I pressing the Terminate but the Pursuit still there and just can not end it

 

im not really getting it. if you arrested somebody the pursuit is over so the pursuit page cannot be opend anymore or what do you mean?
-------------------------------------------------

 

22 hours ago, BOYDEAD02 said:

Major accident and outstanding warrant calls Whenever I  interact to a subject for  Id or arrested them I use stop the ped  but once I do that few minutes later a pop message says Al callout has been corrupted and the cars that had a accident  disappear.

go to my discord. open up a support-ticket and then send the log in there. thanks
-------------------------------------------------

 

10 hours ago, scitpt said:

This plugin has so much potential. It's as close to FiveM as possible, so you aren't by yourself in the world. Why wasn't this in default LSDPFR? (Probably because of the insects and bugs).

Oh this would bee indeed possible but cooding multiple paths of an situation is like creating a new callout. 
anytime a situation goes another way this requires an almost complete new path of code so there will be a "reaction" to a situation which has changed.
Conclusion: a lot of work.

And then we are coding the behavior of AI. AI is Artificial Intelligence. So there should be differences in behavior of the AiOfficer to situations where the suspect died, the partner died, the player arrested the suspect and so on.
Conclusion: That's a lot of work too.  

The more dynamic i make the calls (AiCallouts needs to be able handling a situation where there is just one officer and not 2 in the CopCar) 
the more they get complicated code.

What i want to point out it that making them realistic means that they need way more time in coding.

Edited by ziipzaaapM16A4

Nixfee

Members

I love this mod! Should be default in LSPDFR for all calls.

 

I haven't crashed yet however I have encountered a few bugs.

Sometimes when I respond with another unit, the other unit is stationary and not moving towards the incident with lights on.

Other times they are responding with no lights on just an annoying siren going off. I am using ELS if there is any issues with that.

 

A few little suggestions if I may:

  • AI units to cycle the siren tone (ELS).
  • Something for like shots fired for more units to attend then just 1.
  • Dispatch asks you to attend an incident as the first responder but other units will back you up.

I'm addicted to this mod!

Jason_Ness

Members

I keep getting crashes which is a shame because this is an awesome plugin. I also cannot access the Discord... it wont allow me to use my login and auto-sends me to your page to 'claim account' no matter what I do, so I'll put the log file here.

 

I updated uses the hot fixes and also tried downloading them individually. The crashes are continuous although the length of time between them can differ. Usually the shots fired scenario comes up all the time in the log, as is the case with the attached.

RagePluginHook.log

ziipzaaapM16A4

Insiders Author

(edited)

3 hours ago, Jason_Ness said:

I keep getting crashes which is a shame because this is an awesome plugin. I also cannot access the Discord... it wont allow me to use my login and auto-sends me to your page to 'claim account' no matter what I do, so I'll put the log file here.

 

I updated uses the hot fixes and also tried downloading them individually. The crashes are continuous although the length of time between them can differ. Usually the shots fired scenario comes up all the time in the log, as is the case with the attached.

RagePluginHook.log 255.06 kB · 0 downloads

the discord error seems new to me.  What error message does it show you when trying to enter my discord?


log:

Stack trace:
[12/30/2020 7:48:50 PM.412] LSPD First Response: at Rage.TaskInvoker.EnterVehicle(Vehicle vehicle, Int32 seatIndex)
[12/30/2020 7:48:50 PM.412] at Stealth.Plugins.Code3Callouts.Models.Ambient.EventTypes.Carjacking.‪‌‮‍‫‍‌‬‬‍‮‌‏‭‪‬‫‫‬‫‪‌‮._Lambda$__1()
[12/30/2020 7:48:50 PM.412] at Rage.GameFiber.Main()


not mine caused the crash.

 


(i need to remove those ThreadAbort log messages when lspdfr has been shutdown.)
 

Edited by ziipzaaapM16A4

Nemesisx101

Members

AAIC callouts keep triggering upon exiting vehicle during traffic stops with both GP and OPID installed.

 

ziipzaaapM16A4

Insiders Author

(edited)

 

23 minutes ago, Wolfx101 said:

AAIC callouts keep triggering upon exiting vehicle during traffic stops with both GP and OPID installed.


Is OPID setting you to busy in LSPDFR when telling enroute or onscene? if not thats the issue. i use Grammar Police version of enroute.xml and onscene.xml to ensure they set my to busy in lspdfr.

Edited by ziipzaaapM16A4

Ricky001

Members

I love this plugin. Been waiting for this since forever!

 

But, it seems to be giving quite some performance hits. I understand ambient events are supposed to be a bit heavy on the setup, but this plugin is bothering quite significantly.

Can there be some setup to decrease the frequency of triggering the events? (I couldn't figure that out yet)

 

Having said that, the last thing I would want is to get rid of this. So, is there any suggestions about it?

Officer K Slimm

Members

I love this callout and I really enjoy it But can you please do an update on this and fix it because it keeps crashing my game

DangerousRobot

Members

I like the ambient responses but is there a way to remove the radio chatter completely? Gets a little annoying after a while

ziipzaaapM16A4

Insiders Author

19 minutes ago, DangerousRobot said:

I like the ambient responses but is there a way to remove the radio chatter completely? Gets a little annoying after a while

turn off radio traffic in the ini

ziipzaaapM16A4

Insiders Author

On 1/1/2021 at 10:43 AM, Ricky001 said:

Can there be some setup to decrease the frequency of triggering the events? (I couldn't figure that out yet)

sure you can set MinimumTimeDelayForCalloutAttempt  and MaximumTimeDelayForCalloutAttempt to modify the frequency of AiCallouts.

On 12/30/2020 at 3:42 PM, Wolfx101 said:

AAIC callouts keep triggering upon exiting vehicle during traffic stops with both GP and OPID installed.

 

If anybody has this issue where AAIC trys to assign you to an AiCallout when exiting the vehicle on a traffic stop.
Symptom: Over Radio "Standby. We have no reports"/"10-4 (your unit number)" due to AAIC trying to assign you to an AiCallout.

On 12/30/2020 at 12:05 AM, Nixfee said:

Sometimes when I respond with another unit, the other unit is stationary and not moving towards the incident with lights on.

Other times they are responding with no lights on just an annoying siren going off. I am using ELS if there is any issues with that.
 

hmmm? thats new to me. You got a Video of that?

 

On 12/30/2020 at 12:05 AM, Nixfee said:
  • AI units to cycle the siren tone (ELS).
  • Something for like shots fired for more units to attend then just 1.
  • Dispatch asks you to attend an incident as the first responder but other units will back you up.

1. i dont know how to cycle ELS tones via RPH... if you know tell me. (i don't think that this is possible)
2. Happens when lspdfr assigns a AmbientUnit to the Pursuit. => AmbientCopsCanJoinPursuit. 

3. More something as a callout but if i understood you correctly this seems more like something for a LSPDFR callout.

UH60Lover

Members

(edited)

I'm having the same issue with AI being stationary, not moving to the callout while code 3 with ELS. I'm not sure if the incidence rate of this bug is higher in places outside of the city but it seemed more prevalent  in the country and highway areas. Great mod despite this and the intermittent crashing.

Edited by UH60Lover

MattCC16

Members

Awesome work on this plugin! There is one bug I found. When in a pursuit and an AI officer gets a call from the mod, the officer will join the pursuit instead of going to their call. They do not go to their call after the pursuit either, so you have to go to the scene and end it manually. I think it would be nice to disable the ambient callouts during pursuits, as they can conflict with dispatch audio from other mods. Also, pursuits usually close other radio channels so units can focus on the pursuit. Once again, amazing work!

DangerousRobot

Members

i did that but the traffic kept going but i did something wrong lemme try again.

DangerousRobot

Members

ok for some reason last time when i turned of radio traffic it didnt turn off but this time it did. In future will there be ambient responding firetrucks and ambus?

ziipzaaapM16A4

Insiders Author

55 minutes ago, Skellietan said:

I love the mod but its crashing the plugin like crazy. I will have my log below.

Already fixed in the next version. 
Dayum i should push this update now.

yeinzy

Members

6 minutes ago, ziipzaaapM16A4 said:

Already fixed in the next version. 
Dayum i should push this update now.

Whats the ETA on next update? Cant use this now becuse of crashes but this mod is so damn great so i cant wait for a new update man, great work with this!

ziipzaaapM16A4

Insiders Author

(edited)

14 minutes ago, yeinzy said:

Whats the ETA on next update? Cant use this now becuse of crashes but this mod is so damn great so i cant wait for a new update man, great work with this!

 

update comes today

Edited by ziipzaaapM16A4

Scottvdken

Members

Nice! Looking forward to trying it again. It was a great plugin, just a few too many crashes (seems like it didn't like it when too much stuff was going on and it tried to spawn an event). Keep it up!

volten8720

Members

Love the idea but getting a lot of lspdfr crashes from it.  Today it is centered around shot fired. log included. Hope it get fix because I think this makes playing more exciting and dynamic. 

RagePluginHook.log

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.