Jump to content

EstrategiaGTA

Members
  • Posts

    684
  • Joined

  • Last visited

Everything posted by EstrategiaGTA

  1. No dijiste ni que compilador usas.
  2. He isn't the only scripter who could make it... Yes, I know.
  3. Yo prefiero hacerlo con las funciones
  4. setElementPosition (localPlayer, x, y, z) "onClientGUIClick" --Event
  5. Maybe this would be useful for you: viewtopic.php?f=148&t=40809
  6. It won't work... That would be just like removing the command 'quit'.
  7. setTimer(yourfunction, 1000, 0)
  8. No necesita una tabla, dijo un mensaje no varios.
  9. Because it isn't a function. It's an useful function. And as I can see HERE, you also need the useful function 'getElementSpeed'.
  10. I do not really get what do you mean.
  11. Ya lo tiene después del 'end' de la función 'fun'.
  12. Prueba con: GUIEditor = { button = {}, window = {} } function armashop() GUIEditor.window[1] = guiCreateWindow(219, 93, 384, 397, "Tienda De Armas", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) Colt = guiCreateStaticImage(10, 33, 64, 64, "images/9mm.png", false, GUIEditor.window[1]) Escopeta = guiCreateStaticImage(84, 33, 64, 64, "images/Escopeta.png", false, GUIEditor.window[1]) ComprarColt = guiCreateButton(10, 97, 64, 33, "Comprar\n 45$", false, GUIEditor.window[1]) guiSetProperty(ComprarColt, "NormalTextColour", "FFAAAAAA") ComprarEscopeta = guiCreateButton(84, 97, 64, 33, "Comprar\n 1000$", false, GUIEditor.window[1]) guiSetProperty(ComprarEscopeta, "NormalTextColour", "FFAAAAAA") AK47 = guiCreateStaticImage(158, 33, 64, 64, "images/AK-47.png", false, GUIEditor.window[1]) ComprarAK47 = guiCreateButton(158, 97, 64, 33, "Comprar\n 3000$", false, GUIEditor.window[1]) guiSetProperty(ComprarAK47, "NormalTextColour", "FFAAAAAA") Combate = guiCreateStaticImage(232, 33, 64, 64, "images/Combate.png", false, GUIEditor.window[1]) ComprarCombate = guiCreateButton(232, 97, 64, 33, "Comprar\n 5000$", false, GUIEditor.window[1]) guiSetProperty(ComprarCombate, "NormalTextColour", "FFAAAAAA") Inflarojo = guiCreateStaticImage(306, 33, 64, 64, "images/Inflarojo.png", false, GUIEditor.window[1]) ComprarInflarojo = guiCreateButton(306, 97, 64, 33, "Comprar\n 100$", false, GUIEditor.window[1]) guiSetProperty(ComprarInflarojo, "NormalTextColour", "FFAAAAAA") M4 = guiCreateStaticImage(10, 140, 64, 64, "images/M4.png", false, GUIEditor.window[1]) ComprarM4 = guiCreateButton(10, 204, 64, 33, "Comprar\n 4000$", false, GUIEditor.window[1]) guiSetProperty(ComprarM4, "NormalTextColour", "FFAAAAAA") Sniper = guiCreateStaticImage(84, 140, 64, 64, "images/Sniper.png", false, GUIEditor.window[1]) ComprarSniper = guiCreateButton(84, 204, 64, 33, "Comprar\n 5000$", false, GUIEditor.window[1]) guiSetProperty(ComprarSniper, "NormalTextColour", "FFAAAAAA") Uzi = guiCreateStaticImage(158, 140, 64, 64, "images/UZI.png", false, GUIEditor.window[1]) ComprarUzi = guiCreateButton(158, 204, 64, 33, "Comprar\n 2000$", false, GUIEditor.window[1]) guiSetProperty(ComprarUzi, "NormalTextColour", "FFAAAAAA") Deagle = guiCreateStaticImage(232, 140, 64, 64, "images/Desert-Eagle.png", false, GUIEditor.window[1]) ComprarDeagle = guiCreateButton(232, 204, 64, 33, "Comprar\n 250$", false, GUIEditor.window[1]) guiSetProperty(ComprarDeagle, "NormalTextColour", "FFAAAAAA") Recortada = guiCreateStaticImage(306, 140, 64, 64, "images/Saw-Off-Shotguns.png", false, GUIEditor.window[1]) ComprarRecortada = guiCreateButton(306, 204, 64, 33, "Comprar\n 5000$", false, GUIEditor.window[1]) guiSetProperty(ComprarRecortada, "NormalTextColour", "FFAAAAAA") MP5 = guiCreateStaticImage(10, 247, 64, 64, "images/Mac-2.png", false, GUIEditor.window[1]) ComprarMP5 = guiCreateButton(10, 311, 64, 33, "Comprar\n 4000$", false, GUIEditor.window[1]) guiSetProperty(ComprarMP5, "NormalTextColour", "FFAAAAAA") Tec9 = guiCreateStaticImage(84, 247, 64, 64, "images/Mac-3.png", false, GUIEditor.window[1]) ComprarTec9 = guiCreateButton(84, 311, 64, 33, "Comprar\n 2000$", false, GUIEditor.window[1]) guiSetProperty(ComprarTec9, "NormalTextColour", "FFAAAAAA") GUIEditor.button[1] = guiCreateButton(10, 354, 360, 33, "Cerrar", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") Silenciadora = guiCreateStaticImage(158, 247, 64, 64, "images/Silenciador.png", false, GUIEditor.window[1]) ComprarSilenciadora = guiCreateButton(158, 311, 64, 33, "Comprar\n 100$", false, GUIEditor.window[1]) guiSetProperty(ComprarSilenciadora, "NormalTextColour", "FFAAAAAA") Rifle = guiCreateStaticImage(232, 247, 64, 64, "images/Rifle.png", false, GUIEditor.window[1]) ComprarRifle = guiCreateButton(232, 311, 64, 33, "Comprar\n 4500", false, GUIEditor.window[1]) guiSetProperty(ComprarRifle, "NormalTextColour", "FFAAAAAA") showCursor ( true ) addEventHandler ("onClientGUIClick", ComprarColt, ComprarColt1, false) addEventHandler ("onClientGUIClick", ComprarEscopeta, ComprarEscopeta1, false) addEventHandler ("onClientGUIClick", ComprarAK47, ComprarAK471, false) addEventHandler ("onClientGUIClick", ComprarCombate, ComprarCombate1, false) addEventHandler ("onClientGUIClick", ComprarInflarojo, ComprarInflarojo1, false) addEventHandler ("onClientGUIClick", ComprarM4, ComprarM41, false) addEventHandler ("onClientGUIClick", ComprarSniper, ComprarSniper1, false) addEventHandler ("onClientGUIClick", ComprarUzi, ComprarUzi1, false) addEventHandler ("onClientGUIClick", ComprarDeagle, ComprarDeagle1, false) addEventHandler ("onClientGUIClick", ComprarRecortada, ComprarRecortada1, false) addEventHandler ("onClientGUIClick", ComprarMP5, ComprarMP51, false) addEventHandler ("onClientGUIClick", GUIEditor.button[1], Close, false) addEventHandler ("onClientGUIClick", ComprarTec9, ComprarTec91, false) addEventHandler ("onClientGUIClick", ComprarSilenciadora, ComprarSilenciadora1, false) addEventHandler ("onClientGUIClick", ComprarRifle, ComprarRifle1, false) end addEventHandler("onClientResourceStart", getRootElement(), armashop) function fun ( ) guiSetVisible(GUIEditor.window[1],true) showCursor(true) end mymarker = createMarker( -2408.4582519531, -599.47735595703, 131.7, "cylinder", 2, 255, 0, 0, 100) addEventHandler("onClientMarkerHit", mymarker, fun) function ComprarColt1 () showCursor ( true ) triggerServerEvent ( "onGreeting", getLocalPlayer() ) end function Close() showCursor ( false ) guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) end function ComprarEscopeta1() showCursor ( true ) triggerServerEvent ( "ComprarEscopeta1", getLocalPlayer() ) end function ComprarAK471() showCursor ( true ) triggerServerEvent ( "ComprarAK471", getLocalPlayer() ) end function ComprarCombate1() showCursor ( true ) triggerServerEvent ( "ComprarCombate1", getLocalPlayer() ) end function ComprarInflarojo1() showCursor ( true ) triggerServerEvent ( "ComprarInflarojo1", getLocalPlayer() ) end function ComprarM41() showCursor ( true ) triggerServerEvent ( "ComprarM41", getLocalPlayer() ) end function ComprarSniper1() showCursor ( true ) triggerServerEvent ( "ComprarSniper1", getLocalPlayer() ) end function ComprarUzi1() showCursor ( true ) triggerServerEvent ( "ComprarUzi1", getLocalPlayer() ) end function ComprarDeagle1() showCursor ( true ) triggerServerEvent ( "ComprarDeagle1", getLocalPlayer() ) end function ComprarRecortada1() showCursor ( true ) triggerServerEvent ( "ComprarRecortada1", getLocalPlayer() ) end function ComprarMP51() showCursor ( true ) triggerServerEvent ( "ComprarMP51", getLocalPlayer() ) end function ComprarTec91() showCursor ( true ) triggerServerEvent ( "ComprarTec91", getLocalPlayer() ) end function ComprarSilenciadora1() showCursor ( true ) triggerServerEvent ( "ComprarSilenciadora1", getLocalPlayer() ) end function ComprarRifle1() showCursor ( true ) triggerServerEvent ( "ComprarRifle1", getLocalPlayer() ) end
  13. Contact them but you can also download maps from the MTA Community.
  14. Postéalo completo, porque yo no veo ningún error ahí... O al menos postea la función donde creas la GUI.
  15. I would use a setTimer too, so I give the skin 500 miliseconds later of the spawn.
  16. Admin chat with colors!? What would be the use of that?
  17. I don't think that you can do it with Lua...
  18. Also you used client-side only functions and server-side only functions in a script...
  19. Why? What's the problem? You must use: removeAccount ( account theAccount ) --Remove your account setAccountPassword ( account theAccount, string password ) --Change the password (set a new one)
×
×
  • Create New...