Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. Soren se buggeo ahora uno puede entrar dentro
  2. hey soren porque esto no funciona D: ? function quitarreja() removeWorldModel( 16094 ,4000, 0, 0, 0) removeWorldModel( 8061, 4000, 0, 0, 0) end addEventHandler ("onResourceStart", getRootElement(), quitarreja)
  3. 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
  4. en donde mas ? pastebin ai lo posteare
  5. Recien intente y lo mismo man D:
  6. me dice esto : General Error SQL ERROR [ mysqli ] Incorrect string value: '\xF1\xAF\xA0\x8DB ...' for column 'post_text' at row 1 [1366] An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists. D:
  7. marcos ya le arregle no pued publicar el codigo D:
  8. a triggerClientEvent in a client-side doesnt work D:
  9. mm pera en un rato me descargo unos mods y lo pruebo
  10. proba con esto "ElMota" name="guimods" version="1.0.1" type="script"/>
  11. editaste el meta.xml ?
  12. alexs es que si edito no ven que edite D:, ademas marcos, tu puedes cambiar y agregar cosas
  13. y... Sr.Mota lo hizo otra vez aqui ta el script cl-side 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, "Lamborghini", 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 : Infernus") guiSetText(GUIEditor_Label[2], "Nombre del auto modificado : Laborghini") guiSetText(GUIEditor_Label[4], "Tamaño MB : 5.2 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 downloadFile("tuArchivo.txd") downloadFile("tuArchivo.dff") end end end end ) sv-side addEventHandler("onPlayerLogin", getRootElement(), function() triggerClientEvent(source, "onVisible", source) end )
  14. Ya ise el guiSetText me falta descargar el mod nomas 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, "Lamborghini", 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 : Infernus") guiSetText(GUIEditor_Label[2], "Nombre del auto modificado : Laborghini") guiSetText(GUIEditor_Label[4], "Tamaño MB : 5.2 MB") end end end end ) pd: no tengo
  15. Esperame aqui te ayudo algo mas
  16. 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) guiGridListAddColumn(GUIEditor_Grid[1],"Autos Modificados",0.2) 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]) 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 ) sv-side addEventHandler("onPlayerLogin", getRootElement(), function() triggerClientEvent(source, "onVisible", source) end ) esto es cuando el player se logee aparesca la GUI y cuando apriete F5 tambien Ademas le agregue un buton para cerrar la GUI
  17. Lo aras con un boton o con un comando para que se abra la ventana ?
  18. dime con que boton quieres sacarla yo te ayudo a scriptearla no tengo nada mas que hacer 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) guiGridListAddColumn(GUIEditor_Grid[1],"Autos Modificados",0.2) 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])
  19. Verdad solo te are la GUI, no tengo tiempo para hacerte el script completo estoy haciendo mi map :3
  20. como activar ? crear un auto ?
  21. Motaa al rescate , PiuPiuPiu, xDD, Ok de que quieres que sea la GUI, dime los componentes que quieres y la estructura :3
  22. alexs leelo todo y luego postea D:
  23. Si se puede, creo, en el meta pones algo asi como download false algo asi
×
×
  • Create New...