Jump to content

Ayuda


Julian09123

Recommended Posts

Posted

Como puedo hacer un panel. para comprar armas? con un marker

osea cuando te pones arriba del marker se aparece un panel con las armas disponibles y los precios

Gracias

Skype: Juliang09123

Posted

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) 

bandera_de_Venezuela.png

Posted

Una pregunta Nunca pude entender esto

Que hay que cambiar aki?

createMarker(1576.5, 1495.30, 13, "cylinder", 18, 0, 155, 255, 30) osea los numeros de donde los sacas?

gracias

Skype: Juliang09123

Posted

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) 

bandera_de_Venezuela.png

Posted

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) 

Skype: Juliang09123

Posted

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) 

bandera_de_Venezuela.png

  • Recently Browsing   0 members

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