Jump to content

[SOLVED] Disabling HUD on top


Brolis

Recommended Posts

Hi everyone, I want to ask you, how to disable hud on top, there are showing health bar, armour bar, money, weapon icons, time, how to disable that all?

When I am trying to add other huds from resources of this websites, it shows me and default san andreas hud... so it's bugging everything... so, how to disable default hud on top? Thanks a lot!

Edited by Guest
Link to comment

Look, it doesn't show when I am joining to a game for a while, but then I spawn it shows me again... I want to make it not visible 4ever ever! Help me guys!

  
function hudChanger () 
    showPlayerHudComponent ( source, "ammo", false )    -- Hide the ammo displays for the newly joined player 
    showPlayerHudComponent ( source, "weapon", false )  -- Hide the weapon displays for the newly joined player 
    showPlayerHudComponent ( source, "wanted", false )  -- Hide the wanted displays for the newly joined player 
    showPlayerHudComponent ( source, "area_name", false ) 
    showPlayerHudComponent ( source, "vehicle_name", false ) 
    showPlayerHudComponent ( source, "health", false ) 
    showPlayerHudComponent ( source, "money", false ) 
    showPlayerHudComponent ( source, "clock", false ) 
    end 
-- Make our hudChanger function called when the player joins 
addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) 

PS. Thanks for helping :/ Please help me to make default hud invisible...

Link to comment
function hudChanger ( ) 
    showPlayerHudComponent ( source, "all", false ) 
end 
addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) 

That should hide all the default HUD when you join the game.

but that will hide all, crosshair, radar, radio icons. Better select what do you want hide

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...