#Heshan||eUNLOCK|| Posted July 21, 2018 Share Posted July 21, 2018 I got a custom hud in my MTA server,but the default one is glitching in it! how to fix this error hud downloaded from here pls help me to fix this eror Link to comment
FlyingSpoon Posted July 21, 2018 Share Posted July 21, 2018 (edited) Use this, https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible Use this section next time for help with scripts, https://forum.multitheftauto.com/forum/71-scripting/ Edited July 21, 2018 by ℓιgнт 1 Link to comment
#Heshan||eUNLOCK|| Posted July 21, 2018 Author Share Posted July 21, 2018 (edited) 7 minutes ago, ℓιgнт said: Use this, https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible Use this section next time for help with scripts, https://forum.multitheftauto.com/forum/71-scripting/ dude wiki's script is doesnot work for my server sorry for my forum mistake Edited July 21, 2018 by #Heshan||eUNLOCK|| Link to comment
Simple0x47 Posted July 21, 2018 Share Posted July 21, 2018 WIKI's script work for all MTA servers if they are updated ( I guess you don't use a old version of MTA ). You just need to learn how to use them. 1 Link to comment
FlyingSpoon Posted July 21, 2018 Share Posted July 21, 2018 1 hour ago, #Heshan||eUNLOCK|| said: dude wiki's script is doesnot work for my server sorry for my forum mistake You're not meant to use the example given to you, you're meant to adapt it to your own personal usage and way. So for you want to hide the Default MTA Hud (GTA's), you'd hide the health, money, armor, weapon, wanted and clock. It would be best to disable it on when the player join's the server, server sided. 1 Link to comment
mazarati21 Posted July 21, 2018 Share Posted July 21, 2018 Better to use this: --This will disable original hud function hideall(player) setPlayerHudComponentVisible ( "ammo", false ) setPlayerHudComponentVisible ( "area_name", false ) setPlayerHudComponentVisible ( "armour", false ) setPlayerHudComponentVisible ( "breath", false ) setPlayerHudComponentVisible ( "clock", false ) setPlayerHudComponentVisible ( "health", false ) setPlayerHudComponentVisible ( "money", false ) setPlayerHudComponentVisible ( "vehicle_name", false ) setPlayerHudComponentVisible ( "weapon", false ) end addEventHandler ( "onClientResourceStart", getRootElement(), hideall ) Link to comment
#Heshan||eUNLOCK|| Posted July 23, 2018 Author Share Posted July 23, 2018 On 7/22/2018 at 01:02, mazarati21 said: Better to use this: --This will disable original hud function hideall(player) setPlayerHudComponentVisible ( "ammo", false ) setPlayerHudComponentVisible ( "area_name", false ) setPlayerHudComponentVisible ( "armour", false ) setPlayerHudComponentVisible ( "breath", false ) setPlayerHudComponentVisible ( "clock", false ) setPlayerHudComponentVisible ( "health", false ) setPlayerHudComponentVisible ( "money", false ) setPlayerHudComponentVisible ( "vehicle_name", false ) setPlayerHudComponentVisible ( "weapon", false ) end addEventHandler ( "onClientResourceStart", getRootElement(), hideall ) what is the side client or server ? bro Link to comment
JeViCo Posted July 23, 2018 Share Posted July 23, 2018 you need to hide just a HUD soo here (+ fixed a little bit): function hide() setPlayerHudComponentVisible ( "ammo", false ) setPlayerHudComponentVisible ( "armour", false ) setPlayerHudComponentVisible ( "breath", false ) setPlayerHudComponentVisible ( "clock", false ) setPlayerHudComponentVisible ( "health", false ) setPlayerHudComponentVisible ( "money", false ) setPlayerHudComponentVisible ( "weapon", false ) end addEventHandler ( "onClientResourceStart", resourceRoot, hide ) Link to comment
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