Osvaldo098 Posted July 21, 2015 Posted July 21, 2015 Hola, buenas tardes a todos, tengo unaduda, no se si me puedan ayudar. Hice con el GUI Editor un par de títulos para mi server, que siempre esten mostrandose, pero no tengo ni la menor idea de como hacerlo, ni el server o client. Dejo lo que arrojó el Gui editor: screenWidth local screenHeight = guiGetScreenSize () addEventHandler("onClientRender", root, function() dxDrawText("Picadas 24/7", 428, 22, 864, 79, tocolor(153, 0, 0, 255), 3.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Lista de comandos: F9", 396 + 1, 609 + 1, 938 + 1, 706 + 1, tocolor(0, 0, 0, 255), 1.60, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Lista de comandos: F9", 396, 609, 938, 706, tocolor(229, 140, 0, 255), 1.60, "bankgothic", "center", "center", false, false, false, false, false) end ) De antemano gracias.
Sticmy Posted July 21, 2015 Posted July 21, 2015 Intenta ponerlo así. local screenHeight, screenWidth = guiGetScreenSize () addEventHandler("onClientRender", root, function() dxDrawText("Picadas 24/7", 428, 22, 864, 79, tocolor(153, 0, 0, 255), 3.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Lista de comandos: F9", 396 + 1, 609 + 1, 938 + 1, 706 + 1, tocolor(0, 0, 0, 255), 1.60, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Lista de comandos: F9", 396, 609, 938, 706, tocolor(229, 140, 0, 255), 1.60, "bankgothic", "center", "center", false, false, false, false, false) end )
Osvaldo098 Posted July 21, 2015 Author Posted July 21, 2015 Intenta ponerlo así. local screenHeight, screenWidth = guiGetScreenSize () addEventHandler("onClientRender", root, function() dxDrawText("Picadas 24/7", 428, 22, 864, 79, tocolor(153, 0, 0, 255), 3.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Lista de comandos: F9", 396 + 1, 609 + 1, 938 + 1, 706 + 1, tocolor(0, 0, 0, 255), 1.60, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Lista de comandos: F9", 396, 609, 938, 706, tocolor(229, 140, 0, 255), 1.60, "bankgothic", "center", "center", false, false, false, false, false) end ) Pues ya lo intenté y no ví cambio alguno por cierto, pero no, no me ha funcionado. Para hacer funcionar este scrypt se ocupa lua para servidor y client o como esta? perdonen mi ignorancia Saludos.
Calculador Posted July 22, 2015 Posted July 22, 2015 Pues ya lo intenté y no ví cambio alguno por cierto, pero no, no me ha funcionado. Para hacer funcionar este scrypt se ocupa lua para servidor y client o como esta? perdonen mi ignorancia Saludos. Tranquilo, efectivamente esté codigo está apto para client, ya que contiene funciones dx, sólo crea tu archivo lua, luego identifica en el meta que ese archivo es client, una vez hecho esto pega eso que hiciste en guieditor y te funcionará.
Osvaldo098 Posted July 22, 2015 Author Posted July 22, 2015 Gracias, ya lo pegué como estaba, pero no me aparece, que hago? Gracias, saludos.
Sticmy Posted July 22, 2015 Posted July 22, 2015 Osvaldo098Gracias, ya lo pegué como estaba, pero no me aparece, que hago? Gracias, saludos. en vez de 'root' utiliza getRootElement()
Sasu Posted July 22, 2015 Posted July 22, 2015 Osvaldo098Gracias, ya lo pegué como estaba, pero no me aparece, que hago? Gracias, saludos. en vez de 'root' utiliza getRootElement() 'root' esta predefinido en MTA y es lo mismo que getRootElement(). @Osvaldo098: Escribe "debugscript 3"(sin comillas) en F8 y dinos si sale algún error.
Osvaldo098 Posted July 23, 2015 Author Posted July 23, 2015 Lo unico que salió fue WARNING: editor_gui/client/currentbrowser.lua:375 Bad argument @ 'guiGetText' [Expected gui-element at argument 1, got nil] Edito: acabo de ver que ni tiene nada que ver con el script
Osvaldo098 Posted July 24, 2015 Author Posted July 24, 2015 <meta> <scrypt src="scrypt.lua" type="client" /> </meta>
Enargy, Posted July 24, 2015 Posted July 24, 2015 <meta> <scrypt src="scrypt.lua" type="client" /> </meta> Escribiste 'scrypt'. Es script
Osvaldo098 Posted July 24, 2015 Author Posted July 24, 2015 <meta> <scrypt src="scrypt.lua" type="client" /> </meta> Escribiste 'scrypt'. Es script Eso era todo amigo, gracias ,y yo que pensaba que hacia mal el .lua
Recommended Posts