Hello guys ive seen many struggling with blocking the combatroll and ive got the best performed way for you to block it.
Simply add this code in any client.lua
CreateThread(function()
while true do
local wait_time = 1000
if IsPedArmed(PlayerPedId(), 4 or 2) and IsPlayerFreeAiming(PlayerId()) then
wait_time = 0
DisableControlAction(0, 22, true)
end
Wait(wait_time)
end
end)
there is a problem in your snippet if i am armed i cant jump, you should check if player is armed and then check if player is aiming then block the key not when player is armed