Skip to content

Add ability to show/hide radar components #4331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

MegadreamsBE
Copy link
Member

Resolves #4247

This PR updates setPlayerHudComponentVisible adding three new components:
radar_map (the rendered map on the radar)
radar_blips (blips on the radar, including "North", and your player blip)
radar_altimeter (altimeter shown in aircraft)

Backwards compatible with older client versions. When used on a newer server, but with an older client, the package with the new IDs in the enum are ignored. I tested this thoroughly. This is also why I added two missing items server-side (which are available client-side), which remain unusable there.

@tederis tederis added the enhancement New feature or request label Aug 5, 2025
Copy link
Member

@tederis tederis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Dutchman101 Dutchman101 merged commit b98c091 into multitheftauto:master Aug 12, 2025
6 checks passed
MTABot pushed a commit that referenced this pull request Aug 12, 2025
b98c091 Add ability to show/hide radar components (#4331)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split radar component of setPlayerHudComponentVisible into more components
5 participants