Hugos Posted June 11, 2019 Share Posted June 11, 2019 Help. I need to create a "guiCreateEdit", focus on it (so that you can enter text immediately) and make it transparent. How? Link to comment
Hugos Posted June 11, 2019 Author Share Posted June 11, 2019 (edited) 9 hours ago, Hugos said: Help. I need to create a "guiCreateEdit", focus on it (so that you can enter text immediately) and make it transparent. How? With that sorted out, i found my mistakes. There is such a question:How do I display text (guiGetText) on the screen when the user enters text in "guiCreateEdit" (in real time)? Edited June 11, 2019 by Hugos Link to comment
salh Posted June 12, 2019 Share Posted June 12, 2019 (edited) use guiGetText? --try this local screenWidth, screenHeight = guiGetScreenSize ( ) editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true ) function salh() dxDrawText ( guiGetText(editBox),44, 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.0, "pricedown" ) end addEventHandler ( "onClientRender", root, salh) Edited June 12, 2019 by salh 1 Link to comment
#BrosS Posted June 12, 2019 Share Posted June 12, 2019 On 11/06/2019 at 07:21, Hugos said: Help. I need to create a "guiCreateEdit", focus on it (so that you can enter text immediately) and make it transparent. How? guiFocus Link to comment
Hugos Posted June 12, 2019 Author Share Posted June 12, 2019 2 hours ago, #BrosS said: guiFocus Thank, With that sorted out, Link to comment
Hugos Posted June 12, 2019 Author Share Posted June 12, 2019 (edited) 3 hours ago, salh said: use guiGetText? --try this local screenWidth, screenHeight = guiGetScreenSize ( ) editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true ) function salh() dxDrawText ( guiGetText(editBox),44, 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.0, "pricedown" ) end addEventHandler ( "onClientRender", root, salh) Thank! Text is not displayed. Added timer: setTimer ( function() dxDrawText ( guiGetText(editBox),44, 41, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1.0, "pricedown" ) end, 1, 0 ) I already have one function (displays "dxDrawRectangle", "dxDrawText"). How to print "function salh ()" over? Edited June 12, 2019 by Hugos Link to comment
Hugos Posted June 12, 2019 Author Share Posted June 12, 2019 2 hours ago, salh said: print? + Link to comment
Hugos Posted June 12, 2019 Author Share Posted June 12, 2019 I understand, you need to use the "postGUI" Link to comment
N3xT Posted June 15, 2019 Share Posted June 15, 2019 By the way, using a timer inside a render event is useless because 'onClientRender' event gets triggered everytime GTA renders a new frame. 1 Link to comment
Hugos Posted June 15, 2019 Author Share Posted June 15, 2019 12 hours ago, N3xT said: By the way, using a timer inside a render event is useless because 'onClientRender' event gets triggered everytime GTA renders a new frame. Only now understood. Thank you for making my life easier and code! 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