How to hide GTA 5 default hud?

I tried using this addon: GitHub - bepo13/FiveM-HideHUD: FiveM resource for hiding HUD elements

But it crashes whenver i get into a car. I have a supsicion it is cause of the while true do loops in the citizen thread. But i don’t know for sure…

All i am trying to disable is the minimap with the health and armor under.

There are a few options to achieve this. One is to use this native:

This will deactivate the minimap and all other hud elements including the weaponwheel.

this will hide the Map, heath, armor and breath when diving. When called as displayRadar(false), obviously.

Both of them have to be called every frame.