Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Yes, this line: if ( thePlayer == theEstateEntrance ) then Should be: if ( source == theEstateEntrance ) then And this line: outputChatBox ( "You are entering the Estate!", getRootElement() ) Should be: outputChatBox ( "You are entering the Estate!", thePlayer )
  2. Castillo

    Mis dudas

    Llamaste a las funciones igual que las variables de los teams, por eso no funciona seguramente.
  3. Castillo

    Mis dudas

    Eso es porque en el server side tus eventos son: "Red" y "Blue", pero en el client side estas usando los eventos: "red" y "blue".
  4. Castillo

    Mis dudas

    Cuando reinicias un recurso, se ejecuta el evento: "onClientResourceStart"/"onResourceStart".
  5. Castillo

    Mis dudas

    function() guiSetVisible ( GUIEditor_Button[1], true ) guiSetVisible ( GUIEditor_Button[2], true ) end Talvez porque eso no tiene sentido, borrarlo, los botones van a estar visibles al crearse.
  6. Quise decir evento: "dar".
  7. Castillo

    Mis dudas

    Que yo sepa los mapas los detecta solos.
  8. Castillo

    Mis dudas

    Yo solo dije del nombre de la funcion.
  9. Eso es una estupidez, sin ofender, solo necesitas un evento y enviar ambos argumentos en el evento "dar".
  10. Castillo

    Mis dudas

    Quita 'source' del nombre de la funcion y deberia funcionar.
  11. En el server side: "Jugador" no esta definido en ninguna parte.
  12. Are you sure that SQLite has that?
  13. No, aclGetGroup only gets from one group name.
  14. Ah, bueno... Pues el debugscript es para saber si el script tiene errores, pone /debugscript 3 en el chat.
  15. function markerHit (hitPlayer, matchingDimension) if (source == carShopMarker) then triggerClientEvent (hitPlayer,"viewGUI", hitPlayer) end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) Try with that.
  16. Algun error en el debugscript?
  17. Castillo

    how

    You can't set the camera target to a vehicle.
  18. By warp you mean set the player position? if so use: setElementPosition
  19. Con las funciones de scripting podes hacer eso seguro.
  20. Crea el ped server side, luego dale un ID con: setElementID, luego en el client side lo obtenes para obterlo con: getElementByID.
  21. function loadResource ( ) theEntrance = createMarker ( 1481.0408935547, -1771.6051513672, 18.795755386353+1, "arrow", 1.5, 0, 255, 0, 170 ) theExit = createMarker ( 389.8681640625, 173.9693145752, 1008.3828125+1, "arrow", 1.5, 0, 255, 0, 170 ) estateBlip = createBlip ( 1481.0408935547, -1771.6051513672, 18.795755386353+1, 44, 0, 0, 0, 255 ) outputChatBox ( "The Estate has been Loaded!!" ) end addEventHandler ( "onResourceStart", resourceRoot, loadResource ) function markerHitE ( hitPlayer, matchingDimension ) if ( source == theEntrace ) then outputChatBox ( "You are entering the Estate!", hitPlayer ) setElementPosition ( hitPlayer, 389.8681640625, 173.9693145752, 1008.3828125 ) elseif ( source == theExit ) then outputChatBox ( "You are leaving the Estate!", hitPlayer ) end end addEventHandler ( "onMarkerHit", getRootElement(), markerHitE )
  22. Your script only outputs a message to chatbox, it doesn't set position or anything, for that you must use: setElementPosition
  23. Si el ped lo creaste client side, pues solo tu lo veras.
×
×
  • Create New...