elmarcosmta14 Posted May 6, 2012 Author Posted May 6, 2012 Elmota no lo puedes postear en otra parte? D:
iFoReX Posted May 6, 2012 Posted May 6, 2012 aqui el sv-side http://pastebin.ca/2144703 aqui el cl-side http://pastebin.ca/2144704 aqui el meta.xml http://pastebin.ca/2144705 listo
elmarcosmta14 Posted May 6, 2012 Author Posted May 6, 2012 (edited) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.23,0.2417,0.5213,0.5167,"GUI Mods Download",true) GUIEditor_Button[1] = guiCreateButton(147,141,95,37,"Descargar",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(9,26,131,275,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) columna = guiGridListAddColumn(GUIEditor_Grid[1],"Autos Modificados",0.7) GUIEditor_Label[1] = guiCreateLabel(151,39,250,22,"Nombre real del auto :",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(151,67,250,22,"Nombre del auto modificado :",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(152,260,228,39,"GUI Creada por ElMota",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(151,101,250,22,"Tamaño en MB : ",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(147,193,95,37,"Cancelar",false,GUIEditor_Window[1]) row1 = guiGridListAddRow(GUIEditor_Grid[1]) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() guiGridListSetItemText(GUIEditor_Grid[1], row1, columna, "Aston Martin", false, false) end ) addEvent("onVisible", true) addEventHandler("onVisible", getLocalPlayer(), function() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[2] then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end ) bindKey("F5","down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientGUIClick", guiRoot, function() if source == GUIEditor_Grid[1] then nRow = guiGridListGetSelectedItem( GUIEditor_Grid[1] ) if nRow ~= -1 then if nRow == 0 then guiSetText(GUIEditor_Label[1], "Nombre real del auto : Buffalo") guiSetText(GUIEditor_Label[2], "Nombre del auto modificado : Aston Martin") guiSetText(GUIEditor_Label[4], "Tamaño en MB : 1.92 MB") end end end end ) addEventHandler ( 'onClientGUIClick', guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then local row = guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) if row ~= -1 then if nRow == 0 then txd = engineLoadTXD("buffalo.txd") engineImportTXD(txd, 402) dff = engineLoadDFF("buffalo.dff") engineImportDFF(dff, 402) downloadFile(buffalo.txd) downloadFile(buffalo.dff) end end end end ) Quedaron algunos espacios demas es que salia asi en el pastebin Mota como hago para agregar mas autos a la lista :C es que no se nada de sobre GUI Edited May 6, 2012 by Guest
elmarcosmta14 Posted May 6, 2012 Author Posted May 6, 2012 (edited) Lol no lo habia probado, solo me fije que ahora no empezaba la descarga al darle start,pero cuando le doy a descargar no pasa nada el auto vuelve a reaparecer pero no se carga el mod :CC, talves sera mejor que use lo que me dijo alex desde el principio agregar un comando para cargar el mod Edit: Cambie los archivos dff y txd por otros para ver si era eso, le di restart y se empezo a cargar altiro y ademas no se ve el mod Edited May 6, 2012 by Guest
elmarcosmta14 Posted May 6, 2012 Author Posted May 6, 2012 Si eso hare pero la GUI la usare para otra cosa, talves para poner info sobre los autos y skins ^^
Recommended Posts