Disable Pistol Whip is a lightweight plugin for Rage-based scripting environments that disables pistol-whip melee controls while the player is holding a pistol. It is intended for users who prefer to prevent accidental melee attacks when firing pistols.
Urgent Update Info - February 24, 2026
If you are upgrading from v1.0.1.1 to v1.0.2.0, you need to delete the old ini. Delete the old ini, launch the plugin again for the new ini to generate.
Key features
Disable light/heavy/alternate melee controls when a pistol is equipped
Toggle at runtime via a console command or configurable keyboard key
Add weapons using a command without having to edit the config. NEW
Requirements
RagePluginHook
Installation
Drag and Drop "plugins" folder into main gta directory
Usage
By default the plugin is enabled. When a pistol is equipped the plugin disables melee attack controls so the player cannot pistol-whip while holding a pistol.
Console commands (type in the in-game console):
dpw— Toggle the plugin on or off (state is persisted toDisablePistolWhip.ini).dpw_setkey <KeyName>— Change the keyboard toggle key (e.g.dpw_setkey F8). The key is stored as a string and validated at runtime if possible.dpw_notify <true|false>— Enable or disable in-game notifications.dpw_addweapon <weapon_name> --- Add a weapon to save to the config NEW
Source code If you want to fix something or add something to the plugin: https://github.com/jonjongames1997/DisablePistolWhipRPH
Note: You can toggle the mod on/off without having to load/unload the plugin each time.
You can test out future versions of this plugin and other mods by becoming a free member on my patreon: https://www.patreon.com/c/jonjongamesofficial
Latest Reviews
Disable Pistol Whip aka "Stop With The F***ing Pistol Whipping" v1.0.2
JM Modifications
Stop with the Damn Accidental Pistol Whipping
Free
No versions available