Realistic NPC Crime Report

ezgif.com-gif-maker_38


Buy here: PrimeDevelopments.shop [€10]


Config Pastebin

No longer let your players commit heinous crimes in largely populated areas without repercussions with the nifty little script. If an NPC catches a player committing a crime and they’re feeling like doing a good deed, they might just pick up the phone and report it to the police. However, if you’re quick enough, you can scare them off and prevent them from making the report.

Main features

Main features

  • Comes pre-configured for
    • ps-dispatch
    • core-dispatch
    • cd-dispatch
    • mw-dispatch
  • Comes with:
    • Breaking into vehicle event
    • Gun shot event
    • Fist fight event
    • Holding weapon/firearm event
  • Configurable:
    • Config Pastebin
    • Event making noise, peds turn around to see
    • Requires direct line of sight
    • Distance peds notice event
    • Chance per ped of calling the police
  • Interactive way for police to get reports from NPCs
  • Easy to setup to work with most other script events
  • Report spam prevention
  • Works with any framework
  • Works with any Police Dispatch System
  • Clean animations
  • Included player breaking into vehicle, player shooting events and player fighting event
  • Low performance impact (0.00 ms on idle)

This is an example of how an event is implemented in the config


Buy here: PrimeDevelopments.shop [€10]




Config Pastebin


Buy here: PrimeDevelopments.shop [€10]


Vehicle Tracking Toolkit
Exhaust Smoke Overhaul | Coal Rolling
Ultimate Checkers | 3D Player vs Player Minigame
Parking Enforcer Job
Apartment Cleaning Job
Lock Picking Minigame | Improved Lock System
Brake Cutting | Vehicle Sabotage

Change Log

28/11/22

  • fixed core_dispach compatibility issue

14/11/22

  • Fixed bug where some servers had to restart the resource for the events to work
  • Added built-in lock picking and brake cutting support
  • Added dispatch system for standalone users

10/10/22

  • Added built-in support for:
    • ps-dispatch
    • core-dispatch
    • cd-dispatch
  • Added a “Players fighting” event.
  • Added better instructions on how to set-up own events
Code is accessible Partly
Subscription-based No
Lines (approximately) 500
Requirements QBCore, ESX or standalone
Support Yes (free)
6 Likes

What’s the server resmon & client resmon?

2 Likes

0.00 ms on idle. 0.01 - 0.02 ms when an event is triggered

3 Likes

+1 realism

2 Likes

How would this integrate with Sonoran CAD and their dispatch plugin?

1 Like

can you add fighting to this?

1 Like

No issue, works with any dispatch system

1 Like

being added to the next update

2 Likes

Better yet, this is already included in the script :slight_smile:

1 Like

this script now comes with built-in ps-dispatch, core-dispatch and cd-dispatch support!

1 Like

A new version has been released that fixes the problem some people were having with the older version

1 Like

New update added dispatch support for standalone servers

1 Like

Would it also work without NPCs?

2 Likes

sadly not maxcamorra

1 Like

Added “Holding Firearm” event in latest update

2 Likes

So how do the police get notified is it only via cad mdt or in game for standalone?

is there a setting to add job role so npc will not call if the player has a job like police / bcso

it comes with a built-in dispatch system and there are many included dispatch systems, and its not too hard to add your own one with a little coding knowledge :+1:

Yes! you can make it so npcs never report other police officers :smiley:

Having an issue where animals can report crimes…

Config.allPedsWillCallPolice = false -- includes gangmembers
Config.allowedPeds = {--https://docs.fivem.net/natives/?_0xFF059E1E4C01E63C
    4, -- PED_TYPE_PLAYER_2
    5, -- PED_TYPE_CIVMALE
    6, -- PED_TYPE_CIVFEMALE
    7, -- PED_TYPE_COP
    21, -- PED_TYPE_MEDIC
    22, -- PED_TYPE_FIREMAN
    28, -- PED_TYPE_SWAT
    30, -- PED_TYPE_ARMY
}
Config.onlyNaturallySpawningPedsCallPolice = true -- if set to true, peds spawned by other scripts won't call the police