modey2013 Posted May 17, 2015 Posted May 17, 2015 how to hide the hud while login panel is opened? i tried to use the code of setPlayerHudComponentVisible and didnt work function dxDrawLoginPanel( ) if ( isOpen ) then dxDrawRectangle(pX-400, pY-400, 3000, 1031, tocolor(0, 0, 0, 180), false) setPlayerHudComponentVisible( component, false )
Walid Posted May 17, 2015 Posted May 17, 2015 use "onClientHUDRender" event. like this addEventHandler("onClientHUDRender", root, dxDrawLoginPanel) You need to read this Game Processing Order
modey2013 Posted May 18, 2015 Author Posted May 18, 2015 didnt work the same hud showing Show me full code. have a look on your inbox
modey2013 Posted May 18, 2015 Author Posted May 18, 2015 That's why setPlayerHudComponentVisible doesn't works what should i do then
#RooTs Posted May 19, 2015 Posted May 19, 2015 onClientHUDRender removeEventHandler the event is of radar MrTasty https://community.multitheftauto.com/in ... s&id=10673 and the login panel in DX of Madex @Mr.unpredictable, You have to jundar 2 files to add the event removeEventHandler the 2 resources in 1 file ( Client.lua )
Mr.unpredictable. Posted May 20, 2015 Posted May 20, 2015 onClientHUDRender removeEventHandler the event is of radar MrTasty https://community.multitheftauto.com/in ... s&id=10673 and the login panel in DX of Madex @Mr.unpredictable, You have to jundar 2 files to add the event removeEventHandler the 2 resources in 1 file ( Client.lua ) u wht m8?
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