lLinux Posted March 17, 2014 Share Posted March 17, 2014 no soy muy pro con esto de dxDraw alguien me puede ayudar, y tambien como se le puede enviar un texto, asi como se hace con una GUI normal que usas guiSetText pero para dxDraw. Link to comment
Castillo Posted March 17, 2014 Share Posted March 17, 2014 Te referis a la visibilidad? si es asi, entonces es el cuarto argumento en tocolor. Link to comment
lLinux Posted March 17, 2014 Author Share Posted March 17, 2014 Te referis a la visibilidad? si es asi, entonces es el cuarto argumento en tocolor. Gracias, otra duda y para enviarle un texto, por ejemlo que pongas el comando /texto1 y se cambia el texto de un dxDrawText, eso seria todo lo que neceisto Link to comment
Castillo Posted March 17, 2014 Share Posted March 17, 2014 Define una variable con el texto y luego lo dibujas. Link to comment
lLinux Posted March 17, 2014 Author Share Posted March 17, 2014 Define una variable con el texto y luego lo dibujas. Me puedes dar un ejemplo porfavor Link to comment
Castillo Posted March 17, 2014 Share Posted March 17, 2014 local myText = "Hello World!" addEventHandler ( "onClientRender", root, function ( ) dxDrawText ( myText, 0, 0, guiGetScreenSize ( ) ) end ) addCommandHandler ( "change", function ( _, new ) myText = new end ) Link to comment
lLinux Posted March 18, 2014 Author Share Posted March 18, 2014 local myText = "Hello World!" addEventHandler ( "onClientRender", root, function ( ) dxDrawText ( myText, 0, 0, guiGetScreenSize ( ) ) end ) addCommandHandler ( "change", function ( _, new ) myText = new end ) Muchas gracias. Link to comment
Recommended Posts