Check the server console first — JM-NPCRoadRage logs startup messages and errors with the prefix [JM-NPCRoadRage].
Resource Fails to Start#
- Confirm all three dependencies (
qb-core,qb-policejob,qb-ambulancejob) are listed aboveJM-NPCRoadRageinserver.cfg. - Verify the folder name matches the
ensureline exactly — names are case-sensitive on Linux. - Check that
fxmanifest.luais present and has not been accidentally modified.
NPCs Are Not Reacting#
- Make sure you are inside a vehicle — the road rage detection only runs while the player is driving.
- Confirm your location is not inside one of the
Config.BlacklistedAreassafe zones (hospital, police station, airport by default). - Check
Config.RoadRageChance— the default is 15 %, so rage will not trigger every collision. Use/testrageto force a trigger for testing. - Verify
Config.MaxRageNPCshas not been reached. Use/ragestatsto see how many are currently active.
Police Are Never Notified#
Config.MinPoliceOnlinedefaults to2. If fewer than two officers with the police job are on duty, no alert is sent.- Check
Config.PoliceJobmatches the exact QBCore job name your server uses. Config.PoliceNotifyChanceis80 %by default — it will occasionally not trigger. Use/testragemultiple times to confirm.
Discord Webhook Not Posting#
- Confirm
Config.Discord.enabled = trueand that the webhook URL is correctly pasted with no extra spaces. - Check the server console for HTTP error codes after an incident fires.
- Verify the relevant event type is set to
trueinConfig.Discord.logEvents. - If logs appear to stop after a burst of activity, spam prevention may be throttling them — check
spamPrevention.cooldownTimeandmaxLogsPerMinute.
Admin Commands Not Working#
- The player's QBCore job must be
admin, or they must have the QBCoreadminpermission level. - Confirm
client/commands.luaandserver/commands.luaare loading without errors.
Troll Cops Not Spawning#
Config.TrollCops.enabledmust betrue.- You must be standing inside an enabled jurisdiction zone. Use
/trollcopinfoto see which jurisdiction (if any) you are currently in. - The cooldown (
Config.TrollCops.cooldown, default 5 minutes) or session cap (maxPerSession, default 3) may have been reached.
Weapon Blacklist Issues#
- Use
/weaponinfoto see exactly how many weapons passed the filter and how many were removed. - If NPCs only use fists, your allowed weapon list may be empty — all entries in
Config.RageWeaponsmay be present inConfig.BlacklistedWeapons. Remove them from the blacklist or add different weapons to the rage list.
Tip
Set Config.Debug = true in config.lua and restart the resource to enable verbose console logging that shows each system decision as it happens.