LilSoda Posted July 11, 2018 Share Posted July 11, 2018 I got a custom hud in my MTA server,but the default one is glitching in it! How to disable the default one? Link to comment
Leo Messi Posted July 11, 2018 Share Posted July 11, 2018 https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible Link to comment
LilSoda Posted July 11, 2018 Author Share Posted July 11, 2018 8 minutes ago, Leo Messi said: https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible i dont understand this,can u explain it esier? Link to comment
Leo Messi Posted July 11, 2018 Share Posted July 11, 2018 function disableNormalHUD() setPlayerHudComponentVisible("ammo", false) setPlayerHudComponentVisible("health", false) setPlayerHudComponentVisible("clock", false) setPlayerHudComponentVisible("money", false) setPlayerHudComponentVisible("wanted", false) setPlayerHudComponentVisible("weapon", false) -- Like that end addEventHandler("onClientResourceStart", resourceRoot, disableNormalHUD) setPlayerHudComponentVisible Link to comment
LilSoda Posted July 11, 2018 Author Share Posted July 11, 2018 45 minutes ago, Leo Messi said: function disableNormalHUD() setPlayerHudComponentVisible("ammo", false) setPlayerHudComponentVisible("health", false) setPlayerHudComponentVisible("clock", false) setPlayerHudComponentVisible("money", false) setPlayerHudComponentVisible("wanted", false) setPlayerHudComponentVisible("weapon", false) -- Like that end addEventHandler("onClientResourceStart", resourceRoot, disableNormalHUD) setPlayerHudComponentVisible where should i type this? Link to comment
Maybe Posted July 12, 2018 Share Posted July 12, 2018 Best Way: addEventHandler( "onClientResourceStart", getRootElement( ), function () setPlayerHudComponentVisible ( localPlayer, "all", false ) end ) Insert this into the top of your client side script (codeC.lua , sourceC.lua or something similar) Link to comment
kieran Posted July 12, 2018 Share Posted July 12, 2018 (edited) Please read thoroughly through this page in the wiki, it explains how you can start making your own scripts. Or look up scripting on MTA on YouTube, here is a quick YouTube video I just found. I hope this helps you! Edited July 12, 2018 by kieran 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