Lua:
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local pelaaja = GetPlayerPed(-1)
local pyssy = GetSelectedPedWeapon(pelaaja)
if pyssy and not (pyssy == GetHashKey("weapon_sniperrifle") or pyssy == GetHashKey("weapon_heavysniper") or pyssy == GetHashKey("weapon_heavysniper_mk2") or pyssy == GetHashKey("weapon_marksmanrifle") or pyssy == GetHashKey("weapon_marksmanrifle_mk2")) then
HideHudComponentThisFrame(14)
end
end
end)