Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I told you, the function where your GUI creation functions are.
  2. Instead of placing the events outside the function where your GUI is created, place them inside, at the bottom of the function.
  3. Agregas para mover la otra puerta despues de la primera o antes, es lo mismo. function abrir ( ) moveObject (airportgate, 5000, 1759.5999755859, 552.59997558594, 33.700000762939) moveObject (airportgate2, 5000, 1759.5999755859, 552.59997558594, 33.700000762939) end Como eso.
  4. bindKey ( "F1", "down", function ( ) guiSetVisible(GUIEditor_Window[1], true) guiSetVisible(GUIEditor_Label[1], true) guiSetVisible(GUIEditor_Label[2], true) guiSetVisible(GUIEditor_TabPanel[1], true) guiSetVisible(GUIEditor_Tab[1], true) guiSetVisible(GUIEditor_Tab[2], true) guiSetVisible(GUIEditor_Tab[3], true) guiSetVisible(button, true) showCursor (true) end )-- You had a missing parentheses here. Read the comment.
  5. Debug errors?
  6. I tested it before post, it set my position. You are already spawned, right?
  7. function createPedoForPlayer ( thePlayer, command, modelid ) local x, y, z = getElementPosition ( thePlayer ) y = ( y + 5 ) ped = createPed ( 122, x, y, z, 180 ) killPed ( ped ) end addCommandHandler ( "createpedo", createPedoForPlayer )
  8. button = guiCreateButton(280,401,194,92,"Lets get to Work Pilot!",true) Should be: button = guiCreateButton(280,401,194,92,"Lets get to Work Pilot!", false)
  9. So, what is the problem?
  10. setElementAlpha To hide it, though, the shadow will remain. Or you can move him to another dimension, not srue if that'll remove the blood.
  11. Castillo

    How could i?

    You're welcome.
  12. Castillo

    How could i?

    setTimer ( function ( ) if isElementInWater ( localPlayer ) then setElementHealth ( localPlayer, 0 ) end end ,50, 0 )
  13. Castillo

    How could i?

    You could use a timer to check.
  14. Castillo

    How could i?

    You can use: isPedInWater
  15. De nada.
  16. -- client side: triggerServerEvent ( "gasmaskexport", localPlayer ) -- server side: addEvent ("gasmaskexport", true ) function gasmaskexporter ( ) exports.syncro_fixing:gasmaskon ( source ) end addEventHandler ("gasmaskexport", getRootElement(), gasmaskexporter)
  17. Esta vez lo hice yo, pero la proxima no. -- client side: addEvent ( "musica", true ) addEventHandler ( "musica", root, function ( url ) if ( isElement ( sound ) ) then destroyElement ( sound ) end sound = playSound ( url ) setSoundVolume ( sound, 300 ) end ) -- server side: local sounds = { "las urls" } function inicio ( ) triggerClientEvent ( "musica", getRootElement(), sounds [ math.random ( #sounds ) ] ) end addEventHandler ( "onResourceStart", resourceRoot, inicio ) setTimer ( inicio, 410000, 0 )
  18. Yeah, you can do that.
  19. I don't understand what do you mean. But you can't use a exported function which is server side in a client side script.
  20. You are using the exported function in a client side script, but the function is only server side.
  21. You are using the function in a server side script?
  22. Eso no tiene sentido.
  23. Pones ahi la URL que enviaste desde el servidor.
  24. Castillo

    GUI Help

    addEventHandler("onClientPickupHit", disk, function(hitElement, matchingDimension) if ( getElementType(hitElement) == "player" and matchingDimension and hitElement == localPlayer ) then
  25. Cambias parte del script que tenes, el que genera la cancion aleatoria, luego la envias a todos los jugadores con: triggerClientEvent y ahi agregas ese evento en el client side con: addEvent addEventHandler
×
×
  • Create New...