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.
| Command | Description |
|---|---|
/testrage | Triggers road rage on the nearest NPC vehicle within 10 units. Useful for testing the system quickly. |
/clearrage | Clears all currently active road rage NPCs and resets the active count to zero. |
/ragestats | Displays current stats: active NPC count, allowed weapon count, trigger chance, and attack chance. |
/weaponinfo | Shows a breakdown of total configured weapons, how many pass the blacklist filter, and which weapons are blacklisted. |
/reloadweapons | Rebuilds the allowed weapon list from config.lua without restarting the resource. |
/trollcops | Manually spawns troll cops at your location if you are inside an enabled jurisdiction. Requires Config.TrollCops.enabled = true. |
/cleartrollcops | Immediately removes all active troll cop NPCs. |
/trollcopinfo | Shows 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.
| Command | Arguments | Description |
|---|---|---|
/npcrage-stats | — | Shows police online count, minimum required, rage chance, and max NPC count. Also logs the action to Discord. |
/npcrage-toggle | — | Placeholder 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-reload | — | Notifies 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.