iFoReX Posted February 4, 2014 Posted February 4, 2014 Estaba empezando a hacer una gui y de pronto el guiclick no funciona:c GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(352, 69, 599, 652, "eTunes - Comprar Canciones", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Canciones", 0.9) GUIEditor.label[1] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "right", false) NombreDeLaCancion = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(NombreDeLaCancion, "center", false) GUIEditor.label[2] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "right", false) ArtistaDeLaCancion = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion, "center", false) GUIEditor.label[3] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[3], "right", false) AlbumDeLaCancion = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(AlbumDeLaCancion, "center", false) GUIEditor.label[4] = guiCreateLabel(276, 233, 130, 19, "Precio: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[4], "right", false) PrecioDeLaCancion = guiCreateLabel(406, 233, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(PrecioDeLaCancion, "center", false) GUIEditor.button[1] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(364, 336, 181, 50, "Comprar Cancion", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.label[6] = guiCreateLabel(276, 130, 130, 19, "Ventas: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[6], "right", false) Ventas = guiCreateLabel(406, 130, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(Ventas, "center", false) GUIEditor.button[5] = guiCreateButton(364, 276, 82, 50, "Reproducir", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(463, 276, 82, 50, "Detener", false, GUIEditor.window[1]) GUIEditor.window[2] = guiCreateWindow(352, 69, 599, 652, "eTunes - Tus Canciones", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.label[7] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[7], "right", false) NombreDeLaCancion2 = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(NombreDeLaCancion2, "center", false) GUIEditor.label[8] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[8], "right", false) ArtistaDeLaCancion2 = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion2, "center", false) GUIEditor.label[9] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[9], "right", false) AlbumDeLaCancion2 = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(AlbumDeLaCancion2, "center", false) GUIEditor.gridlist[2] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "Tus Canciones", 0.9) GUIEditor.button[7] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[2]) GUIEditor.button[8] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[2]) GUIEditor.button[9] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[2]) GUIEditor.button[10] = guiCreateButton(364, 278, 81, 50, "Reproducir", false, GUIEditor.window[2]) GUIEditor.label[10] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[10], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[10], "center") GUIEditor.label[11] = guiCreateLabel(276, 230, 130, 19, "Reproducciones: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[11], "right", false) ReproduccionesDeLaCancion = guiCreateLabel(406, 230, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(ReproduccionesDeLaCancion, "center", false) GUIEditor.button[11] = guiCreateButton(364, 338, 181, 50, "Convertir En Favorita", false, GUIEditor.window[2]) GUIEditor.button[12] = guiCreateButton(464, 278, 81, 50, "Detener", false, GUIEditor.window[2]) GUIEditor.window[3] = guiCreateWindow(352, 69, 599, 652, "eTunes - Canciones Favoritas", false) guiWindowSetSizable(GUIEditor.window[3], false) GUIEditor.label[12] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[12], "right", false) NombreDeLaCancion3 = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(NombreDeLaCancion3, "center", false) GUIEditor.label[13] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[13], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[13], "right", false) ArtistaDeLaCancion3 = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion3, "center", false) GUIEditor.label[14] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[14], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[14], "right", false) AlbumDeLaCancion3 = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(AlbumDeLaCancion3, "center", false) GUIEditor.gridlist[3] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[3]) guiGridListAddColumn(GUIEditor.gridlist[3], "Canciones Favoritas", 0.9) GUIEditor.button[13] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[3]) GUIEditor.button[14] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[3]) GUIEditor.button[15] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[3]) GUIEditor.button[16] = guiCreateButton(364, 278, 82, 50, "Reproducir", false, GUIEditor.window[3]) GUIEditor.label[15] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[15], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[15], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[15], "center") GUIEditor.label[16] = guiCreateLabel(276, 230, 130, 19, "Reproducciones: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[16], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[16], "right", false) ReproduccionesDeLaCancion2 = guiCreateLabel(406, 230, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(ReproduccionesDeLaCancion2, "center", false) GUIEditor.button[17] = guiCreateButton(364, 338, 181, 50, "Convertir En Favorita", false, GUIEditor.window[3]) GUIEditor.button[18] = guiCreateButton(463, 278, 82, 50, "Detener", false, GUIEditor.window[3]) guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],false) addCommandHandler("etunes",function() if guiGetVisible(GUIEditor.window[1]) == true then guiSetVisible(GUIEditor.window[1],false) showCursor(false) elseif guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1],true) showCursor(true) elseif guiGetVisible(GUIEditor.window[2]) == true then guiSetVisible(GUIEditor.window[2],false) showCursor(false) elseif guiGetVisible(GUIEditor.window[3]) == true then guiSetVisible(GUIEditor.window[3],false) showCursor(false) end end ) addEventHandler("onClientGUIClick",root,function() if root == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],true) end end ) elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
MTA Team 0xCiBeR Posted February 4, 2014 MTA Team Posted February 4, 2014 Proba cambiando de root a source haber que pasa.. DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
iFoReX Posted February 4, 2014 Author Posted February 4, 2014 Gracias Men, Tiempo Sin Scriptear Se Me Han Olvidado Algunos Terminos Jaj, Man Como Podria Hacer Una Tabla ( Algo Como Esto: Canciones = {"Roll Up","Black And Yellow","Young,Wild And Free"} ) ? Para El Grid GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(352, 69, 599, 652, "eTunes - Comprar Canciones", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Canciones", 0.9) GUIEditor.label[1] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "right", false) NombreDeLaCancion = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(NombreDeLaCancion, "center", false) GUIEditor.label[2] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "right", false) ArtistaDeLaCancion = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion, "center", false) GUIEditor.label[3] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[3], "right", false) AlbumDeLaCancion = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(AlbumDeLaCancion, "center", false) GUIEditor.label[4] = guiCreateLabel(276, 233, 130, 19, "Precio: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[4], "right", false) PrecioDeLaCancion = guiCreateLabel(406, 233, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(PrecioDeLaCancion, "center", false) GUIEditor.button[1] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(364, 336, 181, 50, "Comprar Cancion", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.label[6] = guiCreateLabel(276, 130, 130, 19, "Ventas: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[6], "right", false) Ventas = guiCreateLabel(406, 130, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(Ventas, "center", false) GUIEditor.button[5] = guiCreateButton(364, 276, 82, 50, "Reproducir", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(463, 276, 82, 50, "Detener", false, GUIEditor.window[1]) GUIEditor.window[2] = guiCreateWindow(352, 69, 599, 652, "eTunes - Tus Canciones", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.label[7] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[7], "right", false) NombreDeLaCancion2 = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(NombreDeLaCancion2, "center", false) GUIEditor.label[8] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[8], "right", false) ArtistaDeLaCancion2 = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion2, "center", false) GUIEditor.label[9] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[9], "right", false) AlbumDeLaCancion2 = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(AlbumDeLaCancion2, "center", false) GUIEditor.gridlist[2] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "Tus Canciones", 0.9) GUIEditor.button[7] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[2]) GUIEditor.button[8] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[2]) GUIEditor.button[9] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[2]) GUIEditor.button[10] = guiCreateButton(364, 278, 81, 50, "Reproducir", false, GUIEditor.window[2]) GUIEditor.label[10] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[10], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[10], "center") GUIEditor.label[11] = guiCreateLabel(276, 230, 130, 19, "Reproducciones: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[11], "right", false) ReproduccionesDeLaCancion = guiCreateLabel(406, 230, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(ReproduccionesDeLaCancion, "center", false) GUIEditor.button[11] = guiCreateButton(364, 338, 181, 50, "Convertir En Favorita", false, GUIEditor.window[2]) GUIEditor.button[12] = guiCreateButton(464, 278, 81, 50, "Detener", false, GUIEditor.window[2]) GUIEditor.window[3] = guiCreateWindow(352, 69, 599, 652, "eTunes - Canciones Favoritas", false) guiWindowSetSizable(GUIEditor.window[3], false) GUIEditor.label[12] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[12], "right", false) NombreDeLaCancion3 = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(NombreDeLaCancion3, "center", false) GUIEditor.label[13] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[13], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[13], "right", false) ArtistaDeLaCancion3 = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion3, "center", false) GUIEditor.label[14] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[14], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[14], "right", false) AlbumDeLaCancion3 = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(AlbumDeLaCancion3, "center", false) GUIEditor.gridlist[3] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[3]) guiGridListAddColumn(GUIEditor.gridlist[3], "Canciones Favoritas", 0.9) GUIEditor.button[13] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[3]) GUIEditor.button[14] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[3]) GUIEditor.button[15] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[3]) GUIEditor.button[16] = guiCreateButton(364, 278, 82, 50, "Reproducir", false, GUIEditor.window[3]) GUIEditor.label[15] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[15], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[15], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[15], "center") GUIEditor.label[16] = guiCreateLabel(276, 230, 130, 19, "Reproducciones: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[16], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[16], "right", false) ReproduccionesDeLaCancion2 = guiCreateLabel(406, 230, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(ReproduccionesDeLaCancion2, "center", false) GUIEditor.button[17] = guiCreateButton(364, 338, 181, 50, "Convertir En Favorita", false, GUIEditor.window[3]) GUIEditor.button[18] = guiCreateButton(463, 278, 82, 50, "Detener", false, GUIEditor.window[3]) guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],false) addCommandHandler("etunes",function() if guiGetVisible(GUIEditor.window[1]) == true or guiGetVisible(GUIEditor.window[2]) == true or guiGetVisible(GUIEditor.window[3]) == true then guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],false) showCursor(false) elseif guiGetVisible(GUIEditor.window[1]) == false and guiGetVisible(GUIEditor.window[2]) == false and guiGetVisible(GUIEditor.window[3]) == false then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],true) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[3],true) elseif source == GUIEditor.button[8] then guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[1],true) elseif source == GUIEditor.button[9] then guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],true) elseif source == GUIEditor.button[13] then guiSetVisible(GUIEditor.window[3],false) guiSetVisible(GUIEditor.window[2],true) elseif source == GUIEditor.button[14] then guiSetVisible(GUIEditor.window[3],false) guiSetVisible(GUIEditor.window[1],true) end end ) elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
MTA Team 0xCiBeR Posted February 4, 2014 MTA Team Posted February 4, 2014 Algo así te podria ser de utilidad: Server-Side: music = { } music[1] = { name = "LMFAO - Party Rock Anthem", length = "04:22", url = "http://dl.dropbox.com/u/52843114/Music/LMFAO%20-%20Party%20Rock%20Anthem.mp3" } music[2] = { name = "Usher ft. Pitbull - DJ Got Us Falling In Love Again", length = "06:01", url = "http://dl.dropbox.com/u/52843114/Music/Usher%20ft%20Pitbull%20-%20DJ%20Got%20Us%20Falling%20In%20Love%20Again.mp3" } music[3] = { name = "Nicole Scherzinger - Don't Hold Your Breath (remix)", length= "05:48", url = "http://dl.dropbox.com/u/52843114/Music/Nicole%20Scherzinger%20-%20Don%27t%20Hold%20Your%20Breath.mp3" } music[4] = { name = "Inna - 10 Minutes (remix)", length = "04:09", url = "http://dl.dropbox.com/u/52843114/Music/Inna%20-%2010%20Minutes.mp3" } music[5] = { name = "Eiffel 65 - Blue", length = "03:41", url = "http://dl.dropbox.com/u/52843114/Music/Eiffel%2065%20-%20Blue.mp3" } music[6] = { name = "David Guetta & Kelly Rowland - When Love Takes Over", length = "03:08", url = "http://dl.dropbox.com/u/52843114/Music/David%20Guetta%20%26%20Kelly%20Rowland%20-%20When%20Love%20Takes%20Over.mp3" } music[7] = { name = "The Offsprings - You're Gonna Go Far Kid", length = "02:57", url = "http://dl.dropbox.com/u/52843114/Music/The%20Offspring%20-%20You%27re%20Gonna%20Go%20Far%2C%20Kid.mp3" } music[8] = { name = "Jessie J. feat. David Guetta - Laserlights", length = "03:28", url = "http://dl.dropbox.com/u/52843114/Music/Jessie%20J%20ft.%20David%20Guetta%20-%20Laserlight.mp3" } addEvent("onClientRequestMusicList",true) addEventHandler("onClientRequestMusicList",root,function()triggerClientEvent(source,"onServerSendMusicList",root,music)end) La parte del client que lo manejaria: function gotMusicList(songs) music = songs -- Just to globalize it (because we don't want to display URL, but we need it) for k,song in ipairs(music) do local row = guiGridListAddRow(musicList) guiGridListSetItemText(musicList,row,1,k,false,true) guiGridListSetItemText(musicList,row,2,song.name,false,false) guiGridListSetItemText(musicList,row,3,song.length,false,false) end guiSetEnabled(playButton,true) guiSetEnabled(closeButton,true) end addEventHandler("onServerSendMusicList",root,gotMusicList) Si no entiendes, me avisas. DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp
iFoReX Posted February 4, 2014 Author Posted February 4, 2014 Estaba probando sin cambiar nada solo la parte del clientside para ver que tal pero no se setean GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(352, 69, 599, 652, "eTunes - Comprar Canciones", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[1]) Canciones1 = guiGridListAddColumn(GUIEditor.gridlist[1], "Canciones", 0.9) GUIEditor.label[1] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "right", false) NombreDeLaCancion = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(NombreDeLaCancion, "center", false) GUIEditor.label[2] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "right", false) ArtistaDeLaCancion = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion, "center", false) GUIEditor.label[3] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[3], "right", false) AlbumDeLaCancion = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(AlbumDeLaCancion, "center", false) GUIEditor.label[4] = guiCreateLabel(276, 233, 130, 19, "Precio: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[4], "right", false) PrecioDeLaCancion = guiCreateLabel(406, 233, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(PrecioDeLaCancion, "center", false) GUIEditor.button[1] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(364, 336, 181, 50, "Comprar Cancion", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.label[6] = guiCreateLabel(276, 130, 130, 19, "Ventas: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[6], "right", false) Ventas = guiCreateLabel(406, 130, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(Ventas, "center", false) GUIEditor.button[5] = guiCreateButton(364, 276, 82, 50, "Reproducir", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(463, 276, 82, 50, "Detener", false, GUIEditor.window[1]) GUIEditor.window[2] = guiCreateWindow(352, 69, 599, 652, "eTunes - Tus Canciones", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.label[7] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[7], "right", false) NombreDeLaCancion2 = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(NombreDeLaCancion2, "center", false) GUIEditor.label[8] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[8], "right", false) ArtistaDeLaCancion2 = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion2, "center", false) GUIEditor.label[9] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[9], "right", false) AlbumDeLaCancion2 = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(AlbumDeLaCancion2, "center", false) GUIEditor.gridlist[2] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "Tus Canciones", 0.9) GUIEditor.button[7] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[2]) GUIEditor.button[8] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[2]) GUIEditor.button[9] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[2]) GUIEditor.button[10] = guiCreateButton(364, 278, 81, 50, "Reproducir", false, GUIEditor.window[2]) GUIEditor.label[10] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[10], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[10], "center") GUIEditor.label[11] = guiCreateLabel(276, 230, 130, 19, "Reproducciones: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[11], "right", false) ReproduccionesDeLaCancion = guiCreateLabel(406, 230, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(ReproduccionesDeLaCancion, "center", false) GUIEditor.button[11] = guiCreateButton(364, 338, 181, 50, "Convertir En Favorita", false, GUIEditor.window[2]) GUIEditor.button[12] = guiCreateButton(464, 278, 81, 50, "Detener", false, GUIEditor.window[2]) GUIEditor.window[3] = guiCreateWindow(352, 69, 599, 652, "eTunes - Canciones Favoritas", false) guiWindowSetSizable(GUIEditor.window[3], false) GUIEditor.label[12] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[12], "right", false) NombreDeLaCancion3 = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(NombreDeLaCancion3, "center", false) GUIEditor.label[13] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[13], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[13], "right", false) ArtistaDeLaCancion3 = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion3, "center", false) GUIEditor.label[14] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[14], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[14], "right", false) AlbumDeLaCancion3 = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(AlbumDeLaCancion3, "center", false) GUIEditor.gridlist[3] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[3]) guiGridListAddColumn(GUIEditor.gridlist[3], "Canciones Favoritas", 0.9) GUIEditor.button[13] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[3]) GUIEditor.button[14] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[3]) GUIEditor.button[15] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[3]) GUIEditor.button[16] = guiCreateButton(364, 278, 82, 50, "Reproducir", false, GUIEditor.window[3]) GUIEditor.label[15] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[15], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[15], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[15], "center") GUIEditor.label[16] = guiCreateLabel(276, 230, 130, 19, "Reproducciones: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[16], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[16], "right", false) ReproduccionesDeLaCancion2 = guiCreateLabel(406, 230, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(ReproduccionesDeLaCancion2, "center", false) GUIEditor.button[17] = guiCreateButton(364, 338, 181, 50, "Convertir En Favorita", false, GUIEditor.window[3]) GUIEditor.button[18] = guiCreateButton(463, 278, 82, 50, "Detener", false, GUIEditor.window[3]) guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],false) addCommandHandler("etunes",function() if guiGetVisible(GUIEditor.window[1]) == true or guiGetVisible(GUIEditor.window[2]) == true or guiGetVisible(GUIEditor.window[3]) == true then guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],false) showCursor(false) elseif guiGetVisible(GUIEditor.window[1]) == false and guiGetVisible(GUIEditor.window[2]) == false and guiGetVisible(GUIEditor.window[3]) == false then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],true) elseif source == GUIEditor.button[3] then guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[3],true) elseif source == GUIEditor.button[8] then guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[1],true) elseif source == GUIEditor.button[9] then guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],true) elseif source == GUIEditor.button[13] then guiSetVisible(GUIEditor.window[3],false) guiSetVisible(GUIEditor.window[2],true) elseif source == GUIEditor.button[14] then guiSetVisible(GUIEditor.window[3],false) guiSetVisible(GUIEditor.window[1],true) end end ) function gotMusicList(songs) music = songs for k,song in ipairs(music) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,Canciones1,k,false,true) guiGridListSetItemText(GUIEditor.gridlist[1],row,Canciones1,song.name,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,Canciones1,song.length,false,false) end ---guiSetEnabled(playButton,true) ---guiSetEnabled(closeButton,true) end addEventHandler("onServerSendMusicList",root,gotMusicList) elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
BorderLine Posted February 4, 2014 Posted February 4, 2014 y playSound? Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
iFoReX Posted February 4, 2014 Author Posted February 4, 2014 Primero Estoy Haciendo La GUI :c elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Cocodrilo Posted February 4, 2014 Posted February 4, 2014 GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(352, 69, 599, 652, "eTunes - Comprar Canciones", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Canciones", 0.9) GUIEditor.label[1] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "right", false) NombreDeLaCancion = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(NombreDeLaCancion, "center", false) GUIEditor.label[2] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[2], "right", false) ArtistaDeLaCancion = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion, "center", false) GUIEditor.label[3] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[3], "right", false) AlbumDeLaCancion = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(AlbumDeLaCancion, "center", false) GUIEditor.label[4] = guiCreateLabel(276, 233, 130, 19, "Precio: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[4], "right", false) PrecioDeLaCancion = guiCreateLabel(406, 233, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(PrecioDeLaCancion, "center", false) GUIEditor.button[1] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(364, 336, 181, 50, "Comprar Cancion", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.label[6] = guiCreateLabel(276, 130, 130, 19, "Ventas: ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[6], "right", false) Ventas = guiCreateLabel(406, 130, 139, 19, "", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(Ventas, "center", false) GUIEditor.button[5] = guiCreateButton(364, 276, 82, 50, "Reproducir", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(463, 276, 82, 50, "Detener", false, GUIEditor.window[1]) GUIEditor.window[2] = guiCreateWindow(352, 69, 599, 652, "eTunes - Tus Canciones", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.label[7] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[7], "right", false) NombreDeLaCancion2 = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(NombreDeLaCancion2, "center", false) GUIEditor.label[8] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[8], "right", false) ArtistaDeLaCancion2 = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion2, "center", false) GUIEditor.label[9] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[9], "right", false) AlbumDeLaCancion2 = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(AlbumDeLaCancion2, "center", false) GUIEditor.gridlist[2] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[2], "Tus Canciones", 0.9) GUIEditor.button[7] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[2]) GUIEditor.button[8] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[2]) GUIEditor.button[9] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[2]) GUIEditor.button[10] = guiCreateButton(364, 278, 81, 50, "Reproducir", false, GUIEditor.window[2]) GUIEditor.label[10] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[10], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[10], "center") GUIEditor.label[11] = guiCreateLabel(276, 230, 130, 19, "Reproducciones: ", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[11], "right", false) ReproduccionesDeLaCancion = guiCreateLabel(406, 230, 139, 19, "", false, GUIEditor.window[2]) guiLabelSetHorizontalAlign(ReproduccionesDeLaCancion, "center", false) GUIEditor.button[11] = guiCreateButton(364, 338, 181, 50, "Convertir En Favorita", false, GUIEditor.window[2]) GUIEditor.button[12] = guiCreateButton(464, 278, 81, 50, "Detener", false, GUIEditor.window[2]) GUIEditor.window[3] = guiCreateWindow(352, 69, 599, 652, "eTunes - Canciones Favoritas", false) guiWindowSetSizable(GUIEditor.window[3], false) GUIEditor.label[12] = guiCreateLabel(276, 73, 130, 19, "Nombre de la cancion: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[12], "right", false) NombreDeLaCancion3 = guiCreateLabel(406, 73, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(NombreDeLaCancion3, "center", false) GUIEditor.label[13] = guiCreateLabel(276, 92, 130, 19, "Artista: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[13], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[13], "right", false) ArtistaDeLaCancion3 = guiCreateLabel(406, 92, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(ArtistaDeLaCancion3, "center", false) GUIEditor.label[14] = guiCreateLabel(276, 111, 130, 19, "Album: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[14], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[14], "right", false) AlbumDeLaCancion3 = guiCreateLabel(406, 111, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(AlbumDeLaCancion3, "center", false) GUIEditor.gridlist[3] = guiCreateGridList(30, 63, 230, 498, false, GUIEditor.window[3]) guiGridListAddColumn(GUIEditor.gridlist[3], "Canciones Favoritas", 0.9) GUIEditor.button[13] = guiCreateButton(30, 567, 139, 60, "Tus Canciones", false, GUIEditor.window[3]) GUIEditor.button[14] = guiCreateButton(173, 567, 139, 60, "Comprar Canciones", false, GUIEditor.window[3]) GUIEditor.button[15] = guiCreateButton(316, 567, 139, 60, "Canciones Favoritas", false, GUIEditor.window[3]) GUIEditor.button[16] = guiCreateButton(364, 278, 82, 50, "Reproducir", false, GUIEditor.window[3]) GUIEditor.label[15] = guiCreateLabel(464, 567, 125, 60, "Script Made By ElMota\nCopyright 2014 (c)", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[15], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[15], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[15], "center") GUIEditor.label[16] = guiCreateLabel(276, 230, 130, 19, "Reproducciones: ", false, GUIEditor.window[3]) guiSetFont(GUIEditor.label[16], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[16], "right", false) ReproduccionesDeLaCancion2 = guiCreateLabel(406, 230, 139, 19, "", false, GUIEditor.window[3]) guiLabelSetHorizontalAlign(ReproduccionesDeLaCancion2, "center", false) GUIEditor.button[17] = guiCreateButton(364, 338, 181, 50, "Convertir En Favorita", false, GUIEditor.window[3]) GUIEditor.button[18] = guiCreateButton(463, 278, 82, 50, "Detener", false, GUIEditor.window[3]) guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],false) guiSetVisible(GUIEditor.window[3],false) addCommandHandler("etunes",function() if guiGetVisible(GUIEditor.window[1]) == true then guiSetVisible(GUIEditor.window[1],false) showCursor(false) elseif guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1],true) showCursor(true) elseif guiGetVisible(GUIEditor.window[2]) == true then guiSetVisible(GUIEditor.window[2],false) showCursor(false) elseif guiGetVisible(GUIEditor.window[3]) == true then guiSetVisible(GUIEditor.window[3],false) showCursor(false) end end ) addEventHandler("onClientGUIClick",GUIEditor.button[1],function() guiSetVisible(GUIEditor.window[1],false) guiSetVisible(GUIEditor.window[2],true) end)
iFoReX Posted February 4, 2014 Author Posted February 4, 2014 Gracias Man Pero Ya Habia Resolvido Eso:c Ahora Trato De Resolver Lo Del Grid elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Recommended Posts