Jump to content

Ayuda


Julian09123

Recommended Posts

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) 

Link to comment

prueba asi:

client:

ventana = guiCreateWindow(0.35, 0.35, 0.3, 0.2,"Ejemplo",true) 
guiWindowSetSizable(ventana, false) 
guiSetVisible ( ventana, false ) 
  
addEvent ("showGUI", true) 
function asd () 
  if (getLocalPlayer() == source) then 
    guiSetVisible (ventana, true) 
    showCursor (true) 
  end 
end 
addEventHandler ("showGUI", getRootElement(), asd) 

Link to comment

esto puse

Client

ventana = guiCreateWindow(0.35, 0.35, 0.3, 0.2,"Ejemplo",true) 
guiWindowSetSizable(ventana, false) 
guiSetVisible ( ventana, false ) 
  
addEvent ("showGUI", true) 
function asd () 
  if (getLocalPlayer() == source) then 
    guiSetVisible (ventana, true) 
    showCursor (true) 
  end 
end 
addEventHandler ("showGUI", getRootElement(), asd) 

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) 

Link to comment

Client:

ventana = guiCreateWindow(0.35, 0.35, 0.3, 0.2,"Ejemplo",true) 
guiWindowSetSizable(ventana, false) 
guiSetVisible ( ventana, false ) 
  
addEvent ("showGUI", true) 
function asd () 
  if (getLocalPlayer() == source) then 
    guiSetVisible (ventana, true) 
    showCursor (true) 
  end 
end 
addEventHandler ("showGUI", getRootElement(), asd) 

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) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...