lLinux Posted March 17, 2014 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. Skype: HackerlLinux ¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com "La disciplina es la clave del exito"
Castillo Posted March 17, 2014 Posted March 17, 2014 Te referis a la visibilidad? si es asi, entonces es el cuarto argumento en tocolor. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
lLinux Posted March 17, 2014 Author 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 Skype: HackerlLinux ¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com "La disciplina es la clave del exito"
Castillo Posted March 17, 2014 Posted March 17, 2014 Define una variable con el texto y luego lo dibujas. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
lLinux Posted March 17, 2014 Author Posted March 17, 2014 Define una variable con el texto y luego lo dibujas. Me puedes dar un ejemplo porfavor Skype: HackerlLinux ¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com "La disciplina es la clave del exito"
Castillo Posted March 17, 2014 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 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
lLinux Posted March 18, 2014 Author 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. Skype: HackerlLinux ¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com "La disciplina es la clave del exito"
Castillo Posted March 18, 2014 Posted March 18, 2014 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts