Disable Close Combat / Pistol Whipping

@Yashiku said in Disable Close Combat / Pistol Whipping:

@deziel0495 I just read something and testsomething on Ped in GTA and I guess this is what your want :slight_smile:

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(5) -- A Short Daily of 5 MS
		DisableControlAction(0, 140, true) -- Disable the Light Dmg Contr ol
	end
end)

This Disables the Light Damage Control when you press the R Button on full mag
I Hope this will help you :slight_smile:

Thanks! Can I have some more info as to what the values do and where to place the code? I think I put it in the right place: resources/fivem/fivem_client.lua.

No one online to test it with at the moment. I’ll let you know my findings.

2 Likes