OSM | AI Dispatch System Toggle

Latest Update: QBOX Compatibility and Jail Transport Feature!

Worried about your server’s criminals when no cops are online? This script automatically toggles AI Police and Dispatch Services as soon as no cops are online! It has systems for surrendering in built so you aren’t left struggling!

Features

  • Automatically enables AI Police when no cops are online!
  • Add custom events for adding wanted levels (in the config)
  • Surrender Mechanism WITH JAIL (either use /surrender or put your hands up)
  • Whitelist Jobs so they remain unaffected by AI Police!
  • Enable / Disable patrolling cops around the city.
  • EASY TO SETUP; support covered - just DM me after purchase!
  • No Extra Dependencies (works with default / custom prison)
  • Also has a special trigger that you can use to add wanted-levels for your personalized events, like hotwiring.
  • A config with a few editable parameters, rest its a simple to use script.

Also has a special trigger that you can use to add wanted-levels for your personalized events, like hotwiring.

- NO ENCRYPTIONS OR IP LOCKS

Please watch the script preview for more details.


YOUTUBE PREVIEW

PURCHASE HERE

OTHER SCRIPTS


Update I

  • Automatic wanted levels on Hotwiring
  • Automatic wanted levels on Corner-selling
  • Added an event osm-police:server:setWantedLevel with one parameter wantedLevel to trigger from external scripts (only does the job when AI is on)
  • Added a Config Variable for handling external event triggers in this script
    Example

Update II

  1. Added a Job Whitelist for which AI Police will not be active/(Check config.)

  2. Added a /surrender command which disengages all AI police instantly, and jails you for AIConfig.SurrenderTime (config).

  3. MOST AWAITED - Added a functionality, where putting hands up (x) during a pursuit or combat will cause you to surrender and JAIL just like (2). So now you can evade police by surrendering, at the cost of going to jail.
    Script designed only for QBCore Based FiveM Servers

Code is accessible Yes
Subscription-based No
Lines (approximately) 300+
Requirements QBCore / QBOX
Support Yes

Scripts From our Partner

Also don’t forget to check this awesome Wheel Stancer Script by Tuff:

QBCore | ESX | FiveM Wheel Stancer

He has a lot of other great scripts as well on his store:

Visit His Tebex Store
Tuff Scripts | QBCORE SCRIPTS (tebex.io)

4 Likes

Added an Update

  • Automatic wanted levels on Hotwiring
  • Automatic wanted levels on Corner-selling
  • Added an event osm-police:server:setWantedLevel with one parameter wantedLevel to trigger from external scripts (only does the job when AI is on)
  • Added a Config Variable for handling external event triggers in this script
    Example

So far a really cool script. I purchased it today and the community is loving it. We have a smaller community that is growing, however, there are times when PD is not online, and this makes the feel of the server during these low points much more meaningful. Awesome job RookieStar, keep up the good work.

2 Likes

Hello :slight_smile:
Suggestion :

  • ESX Legacy compatible
  • As soon as the players raise their hands, the NPCs stop firing (To avoid unnecessary deaths, otherwise it would charge the EMS)
  • After a while with their hands up, the police can via a TriggerServerEvent, send the person to jail
5 Likes

Fine. Will implement these very shortly hopefully.
Thanks alot

1 Like

New Update for AI Police Toggle Script

  1. Added a Job Whitelist for which AI Police will not be active/(Check config.)

  2. Added a /surrender command which disengages all AI police instantly, and jails you for AIConfig.SurrenderTime (config).

  3. MOST AWAITED - Added a functionality, where putting hands up (x) during a pursuit or combat will cause you to surrender and JAIL just like (2). So now you can evade police by surrendering, at the cost of going to jail.

1 Like

Works beautifully! 10/10 must buy for small roleplay communities

1 Like

Esx yet ?

3 Likes

wanna get this so bad but need esx Lol

1 Like

A new preview of the script, with more detailed features
Though it still doesn’t cover Hands-up to surrender feature.

https://www.youtube.com/watch?v=qFhKP8Sfr0g

Been looking for this! Now i can allow player to do heists even without police on duty!

1 Like

Really fun script, works well. Creator is really friendly and helpful when needed. Would recommend!

1 Like

Love the script! AMAZING for me and my community. We don’t have active police and luckily came by this script! Thanks :slight_smile:

1 Like

Does anyone know of a similar free script for ESX?

Purchased this script and support has been amazing! @OsmFX can do anything!
Ideas come to my head and he makes them come to life!
This script is 100% recommended to anyone just thinking about something like this.
The drug selling is high when theres no police active and this helps alot!
Once again STRONGLY Recommend getting this!

1 Like

pls esx

Scripts From our Partner

Also don’t forget to check this awesome Wheel Stancer Script by Tuff:

QBCore | ESX | FiveM Wheel Stancer

He has a lot of other great scripts as well on his store:

Visit His Tebex Store
Tuff Scripts | QBCORE SCRIPTS (tebex.io)

1 Like

osmium is a true dev. the ai police script is a1, had trouble installing it and osmium came through and fixed it. highly recommend this script for your server.

1 Like

i bought the script but the cops only see me if they’re on foot not in cars i can even crash em and nothing happens in cars is there a fix for this?

1 Like

Also I don’t see how to set different jail times for different crimes also a feature to pic which jail script to use for the crime like corner selling I should be able to send them to jail using my own script or plug in my prison script I would really like these features we can talk about it I’ll pay for upgrades