Jump to content

setPlayerHudComponentVisible


Recommended Posts

Posted

how to hide the hud while login panel is opened? i tried to use the code of setPlayerHudComponentVisible and didnt work

11159515_912883062091728_3327230297480089859_n.png?oh=7397892260d1c8ad17bf57b8b2261898&oe=5608A425&__gda__=1443237455_365b62084ee3708c471a32064ac30e80

  
function dxDrawLoginPanel( ) 
    if ( isOpen ) then 
        dxDrawRectangle(pX-400, pY-400, 3000, 1031, tocolor(0, 0, 0, 180), false) 
        setPlayerHudComponentVisible( component, false ) 
  

Posted

use "onClientHUDRender" event.

like this

addEventHandler("onClientHUDRender", root, dxDrawLoginPanel) 

You need to read this Game Processing Order

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted
didnt work the same hud showing

Show me full code.

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

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