Brolis Posted August 13, 2012 Posted August 13, 2012 (edited) 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 April 13, 2013 by Guest
Brolis Posted August 13, 2012 Author Posted August 13, 2012 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...
Castillo Posted August 13, 2012 Posted August 13, 2012 function hudChanger ( ) showPlayerHudComponent ( source, "all", false ) end addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) That should hide all the default HUD when you join the game.
BorderLine Posted August 13, 2012 Posted August 13, 2012 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
Brolis Posted August 15, 2012 Author Posted August 15, 2012 I tryed to hide ALL, but it just hide a crosshair and nothing else
Callum Posted August 15, 2012 Posted August 15, 2012 addEventHandler("onPlayerJoin",root,function() for k, v in ipairs({"ammo","weapon","wanted","area_name","vehicle_name","health","money","clock"}) do showPlayerHudComponent(source,v,false) end end)
MTA Team qaisjp Posted August 15, 2012 MTA Team Posted August 15, 2012 Make sure that when you spawn, it doesn't decide to show it again.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now