modey2013 Posted May 17, 2015 Share 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 ) Link to comment
Walid Posted May 17, 2015 Share Posted May 17, 2015 use "onClientHUDRender" event. like this addEventHandler("onClientHUDRender", root, dxDrawLoginPanel) You need to read this Game Processing Order Link to comment
modey2013 Posted May 18, 2015 Author Share Posted May 18, 2015 didnt work the same hud showing Link to comment
Walid Posted May 18, 2015 Share Posted May 18, 2015 didnt work the same hud showing Show me full code. Link to comment
modey2013 Posted May 18, 2015 Author Share Posted May 18, 2015 This is custom hud? yep Link to comment
modey2013 Posted May 18, 2015 Author Share Posted May 18, 2015 didnt work the same hud showing Show me full code. have a look on your inbox Link to comment
ALw7sH Posted May 18, 2015 Share Posted May 18, 2015 That's why setPlayerHudComponentVisible doesn't works Link to comment
modey2013 Posted May 18, 2015 Author Share Posted May 18, 2015 That's why setPlayerHudComponentVisible doesn't works what should i do then Link to comment
Mr.unpredictable. Posted May 18, 2015 Share Posted May 18, 2015 onClientHUDRender removeEventHandler Link to comment
#RooTs Posted May 19, 2015 Share 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 ) Link to comment
Mr.unpredictable. Posted May 20, 2015 Share 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? 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