Electrosumm Posted August 14, 2015 Share Posted August 14, 2015 Hi! Im beginner scripter so i need lot of help. Now i work on player info panel but it dont work. The gui is work but dodnt show name ping etc..Why? setBindKeyWindowShow = function ( guiWindow, key ) if guiWindow and key then if getElementType ( guiWindow ) == "gui-window" then guiSetVisible ( guiWindow, false ); local setBindKey_ = function ( key ) guiSetVisible ( guiWindow, not guiGetVisible ( guiWindow ) ); showCursor ( guiGetVisible ( guiWindow ) ); end return bindKey ( key, "down", setBindKey_ ); else return false; end else return false; end end local PlayerWindow = guiCreateWindow (658, 189, 616, 412,"PlayerINFO", false ) setBindKeyWindowShow ( PlayerWindow, "f4" ) local nevlabel = guiCreateLabel (100,100,100,100,"Név:",false, PlayerWindow) local pinglabel = guiCreateLabel (100,120,120,120,"Ping:",false, PlayerWindow) local moneylabel = guiCreateLabel (100,140,140,140,"Pénz:",false, PlayerWindow) local skinlabel = guiCreateLabel (100,160,160,160,"Kinézet:",false, PlayerWindow) local healthLabel = guiCreateLabel (100,180,180,180,"Élet",false, PlayerWindow) function stats (theplayer) local money = getPlayerMoney (localPlayer) local ping = getPlayerPing(localPlayer) local playerName = getPlayerName(localPlayer) local health = getElementHealth(getLocalPlayer()) dxDrawText("Name:" ..playerName..(140,100,100,100,false,PlayerWindow) dxDrawText("Health: "..health..(140,180,180,180,false,PlayerWindow) dxDrawText("Ping:"..ping..(140,120,120,120),false,PlayerWindow) dxDrawText("Money:"..ping..(140,120,120,120),false,PlayerWindow) end Link to comment
Moderators IIYAMA Posted August 14, 2015 Moderators Share Posted August 14, 2015 Because dxDraw functions are rendering behind the gui. Unless the argument postGUI is set to true(which is by default false): postGUI: A bool representing whether the text should be drawn on top of or behind any ingame GUI (rendered by CEGUI). 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