Disable Pistol Whiping

Don’t copy the entire thing unless you want to use that resource; it does more than just disable pistol whip.

Place this code in a script:


Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
 
			-- Disable Pistol whip
			DisableControlAction(0, 140, true)
			DisableControlAction(0, 141, true)
			DisableControlAction(0, 142, true)
			DisableControlAction(0, 263, true)
			DisableControlAction(0, 264, true)

	end
end)
1 Like