Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    GUI

    No, la verdad es que pienso antes de hablar, y como ya esta todo explicado en el script que poste, no habia necesidad de volver a explicarlo. Ademas, yo no dije que tenias que ponerlo en el mismo script, sino en el mismo recurso.
  2. To pass the 'thePlayer' argument to the function executed by the timer.
  3. function Starve ( ) setTimer ( function ( thePlayer ) if ( thePlayer and isElement ( thePlayer ) ) then setElementHealth ( thePlayer, getElementHealth ( thePlayer ) - 2 ) end end ,1000, 0, source ) end addEventHandler ( "onPlayerSpawn", getRootElement(), Starve ) Is a server side script.
  4. Castillo

    GUI

    Ahi te explica como se usa, pero al parecer preferis copiarlo y pegarlo y no pensar antes.
  5. 1: You got missing argument 2 at addEventHandler. 2: "onResourceStart" has no player argument. 3: Lua is case-sensetive, so is not SetElementHealth, but setElementHealth.
  6. Castillo

    [REL] Killcam

    Nice one, keep up the good work .
  7. Castillo

    GUI

    1: Solo funciona con GUI por que asi lo creo arc_. 2: En tu script no usaste ninguna de las funciones, o talvez pensabas que era magico y andaba solo?
  8. https://wiki.multitheftauto.com/wiki/Ser ... web_server
  9. Castillo

    GUI

    Imagenes GUI? si, cualquier elemento.
  10. Castillo

    Please help

    And what is not working exactly?
  11. I think what he's talking about is links in game, like you click on a GUI label and it redirects to your browser to the link. @finleaf: Is not possible to do this.
  12. Castillo

    Need Help

    Was that your question or not?
  13. Castillo

    GUI

    No estoy seguro si esa libreria se puede usar con funciones DirectX. function event ( ) local player = getRandomPlayer ( ) local name = getPlayerName ( player ) giveWeapon ( player, 16, 20000 ) giveWeapon ( player, 38, 20000 ) giveWeapon ( player, 35, 20000 ) outputChatBox ( tostring ( name ) .." Tiene un arma especial por el evento", root, math.random ( 0, 255 ), math.random ( 0, 255 ), math.random ( 0, 255 ) ) end setTimer ( event, 1000, 1 )
  14. El no pidio que sea server side, ni que verificara si esta en el ACL de "Console". @Mr.Domo: bindKey ( "L", "down", function ( ) guiSetVisible ( miVentana, not guiGetVisible ( miVentana ) ) -- Muestra la ventana o la oculta si ya estaba visible. showCursor ( guiGetVisible ( miVentana ) ) -- Muestra el cursor segun la ventana este visible o no. end )
  15. Castillo

    Please help

    Is that the complete script?
  16. Castillo

    Need Help

    You mean this? addCommandHandler ( "text", function ( thePlayer, _, ... ) outputChatBox ( table.concat ( { ... }, " " ) ) end )
  17. https://wiki.multitheftauto.com/wiki/ShowChat
  18. Castillo

    Need Help

    Your question doesn't make any sense to me, please explain yourself further.
  19. local door1marker = createMarker ( 2655, 2706, 411, "arrow", 1, 100, 20, 20 ) function door1markerhit( hitElement, matchingDimension ) if ( getElementType( hitElement ) == "player" ) then triggerClientEvent ( hitElement, "ondoor1markerhit", hitElement ) end end addEventHandler( "onMarkerHit", door1marker, door1markerhit )
  20. What do you mean by calculate?
  21. function isModelInTable ( theModel ) local found = false for _, model in ipairs ( vehicleIDS ) do if ( model == theModel ) then found = true break end end return found end
  22. I don't think it's logged, I think is just temporary until you leave the server.
  23. Castillo

    GUI

    No hay nada que descargar, ese es el script, lo pones en un .lua en el recurso donde lo vas a usar cada vez. 1: match.random(0, 255), es math.random, no match. 2: No podes destruir una variable.
×
×
  • Create New...