JJM Modifications
🤖

Commands

All admin commands available in JM-NPCRoadRage.

All commands require the player's QBCore job to be admin. Regular players cannot execute them.

Client-Side Commands#

These commands run on your own client and affect the local game session.

CommandDescription
/testrageTriggers road rage on the nearest NPC vehicle within 10 units. Useful for testing the system quickly.
/clearrageClears all currently active road rage NPCs and resets the active count to zero.
/ragestatsDisplays current stats: active NPC count, allowed weapon count, trigger chance, and attack chance.
/weaponinfoShows a breakdown of total configured weapons, how many pass the blacklist filter, and which weapons are blacklisted.
/reloadweaponsRebuilds the allowed weapon list from config.lua without restarting the resource.
/trollcopsManually spawns troll cops at your location if you are inside an enabled jurisdiction. Requires Config.TrollCops.enabled = true.
/cleartrollcopsImmediately removes all active troll cop NPCs.
/trollcopinfoShows troll cop status: active cop count, current jurisdiction, session count, and cooldown remaining.

Server-Side Commands#

These commands run on the server and are entered in the chat by an admin player.

CommandArgumentsDescription
/npcrage-statsShows police online count, minimum required, rage chance, and max NPC count. Also logs the action to Discord.
/npcrage-togglePlaceholder for toggling the system on/off. Currently requires a resource restart to fully apply — functionality noted for future implementation.
/npcrage-history[playerID]Shows the total number of road rage incidents and police notifications associated with a player's citizen ID. Requires the optional database table.
/npcrage-reloadNotifies you to restart the resource to apply config changes. Full hot-reload is not yet implemented.
Note

Permission checks use the QBCore job system. A player must have the job name admin or the QBCore permission level admin to use these commands.