qbcore-framework / qb-weapons

Weapon Logic Script For QB-Core :gun:
GNU General Public License v3.0
28 stars 194 forks source link

Sniper Crosshairs #1

Closed Zy0exe closed 3 years ago

Zy0exe commented 3 years ago

Sniper crosshairs do not work cuz of HideHudComponentThisFrame(14)

the fix i personally use is

Citizen.CreateThread(function()
    while true do
        if not IsAimCamActive() or not IsFirstPersonAimCamActive() then
            HideHudComponentThisFrame(14)
        end
        Citizen.Wait(0)
    end
end)