Disable default streets HUD and ammunition HUD

Hello, I would like to know how to disable these 3 default HUDs :slight_smile:

1- Money that appears suddenly. (sometimes)

2- The annoying HUD of the default “street name”.

3- The HUD of the default amount of ammo.

I await your answers, they would really change my experience, greetings !!!

1 Like

Check out the HIDE_HUD_COMPONENT_THIS_FRAME native

2 Likes

Hey, thanks! Then I simply have to create a script that “overrides” that function, right? :slightly_smiling_face: I don’t know how to disable natives

1 Like

No, you run the native every frame for each component

2 Likes

Thank you very much to both of you, I think I understood what I have to do.

in wich fille should be this native

1 Like

Where put that?

2 Likes
Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		HideHudComponentThisFrame(3) -- CASH
		HideHudComponentThisFrame(4) -- MP CASH
		HideHudComponentThisFrame(2) -- weapon icon
		HideHudComponentThisFrame(9) -- STREET NAME
		HideHudComponentThisFrame(7) -- Area NAME
		HideHudComponentThisFrame(8) -- Vehicle Class
		HideHudComponentThisFrame(6) -- Vehicle Name
	end
end)

Try this and tell me if it’s work

12 Likes

Worked perfectly for me, thx :slight_smile:

3 Likes

It worked perfectly for me too, thank you very much. People like you inspire beginners like me to learn LUA, I am a novice and appreciate your help. :slight_smile:

2 Likes

thanks man!

1 Like

where to put this?

2 Likes

Place it in a client.lua of your hud

please help me how to do that where i should put that code

In any client script

unde pun asta ?

I myself just made a new fxmanifest and a new client.lua called it hudremover and added it to my server.cfg as its own resource.

The issue i am having is this line does not seem to remove the ammo counter in top right
HideHudCompenentThisFrame(2) – weapon icon

Also when you hit Z the money comes right back while holding Z as does all other things this script disables. Is tehre a way to detach Z from the items added within this script?

keep it english , you need to put it on any client script.

You probably have a HUD or a resource inputting the ammo display

I have got problem too image