[FREE] Fenix Police Response (AI Police)

Fenix Police Response 1.0.2

This mod enables AI police dispatch/wanted levels and replaces the base GTA V police dispatch system with something less punishing and more realistic. It is highly configurable and all configuration and code is thoroughly commented to facilitate end-user modification. You could configure this to be even more brutal than base-game if you wanted, or even easier.

The idea was to have AI police for a small RP server just for your friends where having a bunch of player police was not possible.

Update 1.0.2 2025-05-04: Adds configurable robbery calls from community member Tunsworthy. Release is posted on github. FYI given the new baby we have I’ll likely be off modding for another year. Anyone is welcome to contribute and fork the repo as always =D

DOWNLOAD:
https://github.com/FenixPK/fenix-police

18 Likes

Sounds interesting, do you mind to recheck your link as its unreachable aka 404 currently.

2 Likes

Done, thank you I forgot to set the repository to public lol

1 Like

how much of qb core does this depend on

1 Like

It uses a QBCore function to get nearest vehicles, for doing the police job count, and QB Notify for the “enabled/disabled” notifcations when the mod loads.

1 Like

nice script.

but…

2 Likes

Yeahhhh… I’m still looking into that. I generate all vehicles and peds on the serverside and return the network IDs to the client, but yet the client still gets that error when calling NetToPed or NetToVeh for doing things like tasking the officers to chase the player etc.

Eventually when wanted level is lost it loops through all the NetworkIDs it has stored for Vehicles and Peds and tells the server to DeleteEntity and they do get removed properly at that point, so I know the network IDs exist.

If anyone has any tips on that issue I’m all ears.

2 Likes

Thanks!

1 Like

I love your script, I was looking for something exactly like this for my server, although I’m having a problem. I want to use it as a complement for the police, for example, if all the police are busy, they have the option to manually activate the AI so that other players can continue doing illegal activities. The problem is that if it’s activated, it also adds stars to the police officers if they shoot. My suggestion/question is:
Can some kind of exclusion be added for players who have certain jobs?

2 Likes

That’s a good idea, I can add that to the list. It shouldn’t be hard. (Fingies crossed haha).

UPDATE: Version 1.0.1 released with protection for players with police jobs and a hopeful fix for unarmed cops spawning.
NOTE: I struggled with adding a chat command to turn police on/off but it kept crashing the game for some strange reason… I’ll look at that in a future version.

1 Like

Everything works perfectly! I love it!

2 Likes


config.lua (33.1 KB)

Hey, so this error where it says line blah blah blah keeps popping up and I need help. I tried to edit the config to add things like the Coast Guard and the Military at 5 stars, but something happened. I don’t know what happened. It would be great if you could tell me. Thats why, I sent my config file and the error message. Thanks for creating this amazing mod!

@ZX1P
Why did you put “{‘5’}”? I don’t think it’s necessary to add the number of zones, that’s why you have that error since you closed Config.ZoneEnum with that. If you remove “‘5’}”, it should solve the problem.

Something like this:

@DavidThe204 Even before I added that 5 and stuff it was still happening.

How do I add new dispatch zones without fucking up the mod


still happening, I did everything you told me too.

@ZX1P

The zone name should be assigned as follows:

It is not necessary to put the name after the “=”.

@ZX1P
And in “Config.ZoneEnum,” you assign it a name and then assign its “vehiclesByRegion,” something like this:

Thank you so much!

How can I get the USCG to spawn. I already have all the peds and boats, I just wanna know how to get them in the water.