Skip to content

Add radar_disc, radar_horizon, radar_airstrip_blip and sniper_background to setPlayerHudComponentVisible#4950

Open
TheCrazy17 wants to merge 2 commits into
multitheftauto:masterfrom
TheCrazy17:feature/hud-radar-sniper-components
Open

Add radar_disc, radar_horizon, radar_airstrip_blip and sniper_background to setPlayerHudComponentVisible#4950
TheCrazy17 wants to merge 2 commits into
multitheftauto:masterfrom
TheCrazy17:feature/hud-radar-sniper-components

Conversation

@TheCrazy17

@TheCrazy17 TheCrazy17 commented Jun 12, 2026

Copy link
Copy Markdown

Summary

Adds four new togglable HUD components via setPlayerHudComponentVisible (client + server eHudComponent):

Motivation

Resolves #4850
Resolves #3962

There was previously no way to hide these HUD elements individually.

Test plan

  • In-game: toggled each new component on/off with setPlayerHudComponentVisible and confirmed the expected element hides/shows correctly with no side effects on other HUD elements (radar blips, crosshair reticle, etc.).

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

Allows hiding the radar's black circular border (multitheftauto#4850), the aircraft
tilt indicators shown while flying (rotating ring + green attitude
band), and the airstrip blip placed on the radar near runways, via
setPlayerHudComponentVisible.
Allows hiding the black letterbox/zoom-box overlay drawn around the
screen while aiming the sniper rifle in scope mode, independently of
the crosshair, via setPlayerHudComponentVisible (multitheftauto#3962).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to show/hide more radar HUD components setPlayerHudComponentVisible: sniper scope background

1 participant