Premium scripts for QBCore, ESX, Qbox & standalone Shop new scripts
FREE Free AI Police That Step Aside When Real Officers Log In
Overview
Reviews

Built for small servers

A new server cannot keep player police online around the clock. Without them, crime has no cost. This free script rewrites the base GTA V dispatch and wanted system so that AI police cover the gap, and then get out of the way when real officers come on duty.

Every value is in a commented config. You can make the response softer than vanilla or far harsher.

When the AI responds

  • Only when player police are offline, or when fewer than a number you choose are on duty
  • Players with a police job can be immune to wanted levels, optionally only while on duty
  • Wanted stars can be cancelled automatically when a player is dying or in last stand

Who responds

Los Santos, Paleto Bay, Sandy Shores and the Countryside each have their own roster.

  • Every unit has a spawn chance weighting and a minimum wanted level. Riot and FBI units arrive in force at higher stars, and regular patrols still appear.
  • Every unit has its own ped list, so models can be swapped without touching code.
  • Loadouts are custom and randomized per unit, with a spawn chance for each weapon.

From the air

  • Police helicopters spawn at higher wanted levels. The default is 4 stars, where vanilla uses 3.
  • Military helicopters and planes can spawn when the player is in the air.
  • Ground, helicopter and air units have separate counts, spawn distances and cleanup timers.

During a chase

  • Evasion times are configurable for each wanted level.
  • The response scales per player. Two wanted players in one car bring double the police, and four bring four times as many.
  • Units spawn on the server and their network IDs are passed to the client, so they sync for everyone. You will see AI chasing other players.
  • Distance culling is set high, so units keep working from far away.
  • A stolen police vehicle does not despawn while a player is inside it.
  • Dead and distant units clear on separate timers per unit type, which frees slots for the next wave.

Exports

  • exports['fenix-police']:ApplyWantedLevel(level) adds 1 to 5 stars to the current wanted level.
  • exports['fenix-police']:SetWantedLevel(level) sets the wanted level to this value if it is higher than the current one.

Requirements

QBCore is used for notifications, for counting on duty police, for a nearby vehicle check and for the isDying and inLastStand hooks. The dependency can be removed if you replace the vehicle check with the native and drop the notification and last stand logic.

No reviews yet — be the first to write one.

Write a review

Reviews are moderated before appearing. Purchased the product? Your review gets a VERIFIED badge automatically.

20 chars minimum
[ You might also like ]

Related scripts

About this FiveM script

Free AI Police That Step Aside When Real Officers Log In is a free FiveM script for qbcore servers. It’s part of the Tebex FiveM Store catalog, a curated selection of battle-tested resources for QBCore, ESX and Qbox roleplay servers. Every script on Tebex FiveM Store ships with lifetime updates, secure payments by Tebex, and email support for technical questions.

Whether you’re building a QBCore server from scratch, upgrading an ESX Legacy deployment, or migrating to Qbox, this resource drops in cleanly and runs at 0.00ms idle resmon. The config-first design means you can customize prices, permissions and locations without touching the core Lua.