diff --git a/client/binoculars.lua b/client/binoculars.lua index 9fa34b2..3d764d0 100644 --- a/client/binoculars.lua +++ b/client/binoculars.lua @@ -49,6 +49,25 @@ local function handleZoom(cam) end end +local function hideHUDThisFrame() + HideHelpTextThisFrame() + HideHudAndRadarThisFrame() + HideHudComponentThisFrame(1) -- Wanted Stars + HideHudComponentThisFrame(2) -- Weapon icon + HideHudComponentThisFrame(3) -- Cash + HideHudComponentThisFrame(4) -- MP CASH + HideHudComponentThisFrame(6) + HideHudComponentThisFrame(7) + HideHudComponentThisFrame(8) + HideHudComponentThisFrame(9) + HideHudComponentThisFrame(13) -- Cash Change + HideHudComponentThisFrame(11) -- Floating Help Text + HideHudComponentThisFrame(12) -- more floating help text + HideHudComponentThisFrame(15) -- Subtitle Text + HideHudComponentThisFrame(18) -- Game Stream + HideHudComponentThisFrame(19) -- weapon wheel +end + --EVENTS-- -- Activate binoculars @@ -92,7 +111,8 @@ RegisterNetEvent('binoculars:Toggle', function() local zoomvalue = (1.0 / (fov_max-fov_min)) * (fov-fov_min) checkInputRotation(cam, zoomvalue) handleZoom(cam) + hideHUDThisFrame() DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0) Wait(0) end -end) \ No newline at end of file +end)