Jump to content

How to disable the default MTA HUD?


LilSoda

Recommended Posts

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
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

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

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...