Lua:
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local ped = PlayerPedId()
if not IsControlPressed(0, 330) or not IsControlPressed(0, 331) then
DisablePlayerFiring(GetPlayerPed(-1), true)
DisableControlAction(0, 142, true)
end
if IsPedArmed(ped, 6) then
DisableControlAction(1, 140, true)
DisableControlAction(1, 141, true)
DisableControlAction(1, 142, true)
end
end
end)