Jump to content

AlvareZ_

Members
  • Posts

    611
  • Joined

  • Last visited

Everything posted by AlvareZ_

  1. AlvareZ_

    Ayuda

    los tres primeros numeros son las coordenadas x, y, z q las puedes ver en tu panel admin, luego el tipo de marker, y por ultimo el color
  2. AlvareZ_

    Ayuda

    Server : ejemplo = createMarker(1576.5, 1495.30, 13, "cylinder", 18, 0, 155, 255, 30) addEvent ("showGUI", true) function markerHit (hitPlayer, matchingDimension) if (source == ejemplo) then triggerClientEvent ("showGUI", hitPlayer) outputChatBox ("Bienvenido!", hitPlayer, 255, 255, 255) end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) Client: ventana = guiCreateWindow(0.35, 0.35, 0.3, 0.2,"Ejemplo",true) addEvent ("showGUI", true) function asd () if (getLocalPlayer() == source) then guiSetVisible (ventana, true) showCursor (true) end end addEventHandler ("showGUI", getRootElement(), asd)
  3. AlvareZ_

    Ayuda

    createMarker guiSetVisible onMarkerHit
  4. mira me anda pero al cargar el resource se abre, solo quiero q abra al presionar f1 function abrir () if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then -- check if the gui element is visible guiSetVisible ( GUIEditor.window[1], false ) -- if it is, we hide it else guiSetVisible ( GUIEditor.window[1], true ) -- if not, we make it visible end end bindKey ( "f1", "down", abrir )
  5. yo cree una gui pero lo siguiente es q como aria par a q se abra con f1 y cierre con f1
  6. q pasa aqui no se por q no me quiere correr addEventHandler("onPlayerLogin", root, function() outputChatBox("#FF0000[LOGIN] #00FF00El Jugador "getPlayerName(source).."#00FF00a logeado BIENVENIDO!", root, r, g, b, false) end )
  7. la misma imagen con varios nombres?
  8. client: gif = dxDrawGifImage ( 769, 175, 193, 145, "imagen", 0, "png", 120 ) addCommandHandler ( "destroygif", function ( ) destroyElement ( gif ) end ) meta: "gif" author="alvarez" version="1.0" />
  9. cambie la imagen a .png igual q en la meta y no anda puedes dejar un ejemplo ?
  10. si, pero lo agrege imagen.gif = q a la meta :C ?
  11. gif = dxDrawGifImage ( 769, 175, 193, 145, "imagen", 0, "png", 120 ) addCommandHandler ( "destroygif", function ( ) destroyElement ( gif ) end ) no me anda, y ya agrege la imagen a el archivo
  12. pero deberia poner en la parte de "png" a "gif" no ?
  13. usaria solo esto ? gif = dxDrawGifImage ( 769, 175, 193, 145, "images/flag_arg", 0, "png", 120 ) addCommandHandler ( "destroygif", function ( ) destroyElement ( gif ) end )
  14. bueno lo siguiente es si podria poner un GIF en ces de una imagen .png ?
  15. ahm y me ayudarian a calcular esto: createRadarArea createColCuboid una forma para calcularla rapido y sin problemas
  16. Gracias alex me funciono! Gracias a ti tambien NOD
  17. intenta esto function() showwindow = guiCreateWindow(315, 142, 276, 241, "Pilot Job", false) tomar = guiCreateButton(19, 155, 93, 53, "take", false, showwindow) cancelar = guiCreateButton(159, 155, 93, 53, "cancel", false, showwindow) labl = guiCreateLabel(19, 35, 239, 163, "pick up passengers to the location.", false, showwindow) showCursor(true) end addEventHandler( "onClientGuiClick", tomar, takeJ, true) addEventHandler( "onClientGuiClick", cancelar, Exit, true) function show() guiSetVisible (showwindow, true) showCursor (true) end bindKey ( player, "F2", show ) addEvent ("showGUI", true) addEventHandler ("showGUI",root,show) function takeJ() triggerServerEvent("setPilot",localPlayer) showCursor (false) end function Exit() guiSetVisible(showwindow, false) showCursor(false) end PRECIONA F2 PARA ABRIRLA
  18. No anda models = {} models[29] = true --así los vas agregando models[31] = true addEventHandler( 'onColShapeHit', root, function( thePlayer ) if models[getElementModel( thePlayer)] then
  19. asi empiesa el script addEventHandler( 'onColShapeHit', root, function( thePlayer ) donde lo agrego
  20. se puede con otra forma es q no me anda con lo q lo adjusto
  21. Buenas, quisiera saber como agregar varios skins a getElementModel como por ejemplo: if getElementModel( thePlayer ) == 29 then
×
×
  • Create New...