where it is inserted? Function disableMinigunOnSwitch (prevSlot, NewSlots)
if getPedWeapon (getLocalPlayer (), NewSlots) == 38 then - if the weapon is turned on minigun
toggleControl ("aim_weapon", false) - disable the button order
else - if not the minigun
toggleControl ("aim_weapon", true) - renable button order
end
end
addEventHandler ("onClientPlayerWeaponSwitch", getRootElement (), disableMinigunOnSwitch)