JM-NPCRoadRage is a QBCore resource that makes nearby NPCs react dynamically when a player drives aggressively — NPCs can exit their vehicle, confront the player, attack with fists or weapons, flee, and even trigger a police dispatch.
Features#
- Dynamic road rage — NPCs detect collisions and aggressive driving and respond in real time.
- Combat system — Enraged NPCs can attack with fists or pull a weapon from a configurable list.
- Weapon filtering — A blacklist prevents NPCs from using overpowered or disruptive weapons.
- Police integration — Incidents can automatically alert on-duty police officers via
qb-policejob. - Injury system — Players have a configurable chance of receiving a head injury requiring medical attention after being attacked.
- Safe zones — Road rage never triggers inside designated areas such as the hospital, police station, or airport.
- Discord logging — All incidents, police notifications, injuries, and admin actions are posted to a Discord webhook with spam prevention built in.
- Troll Cops — An optional, admin-only comedic feature that spawns aggressive cop NPCs within configurable jurisdiction zones.
- Admin commands — In-game commands let staff test, clear, and inspect the system without restarting the resource.
Dependencies#
| Resource | Required |
|---|---|
qb-core | Yes |
qb-policejob | Yes |
qb-ambulancejob | Yes |
Note
All three dependencies must be running and loading before JM-NPCRoadRage starts. See the Installation page for the correct server.cfg order.
Compatibility#
JM-NPCRoadRage is built for QBCore servers running FiveM with OneSync Infinity. It is not compatible with ESX or standalone FiveM without modification.