Jump to content

conner12

Members
  • Posts

    5
  • Joined

  • Last visited

Details

  • Gang
    CIT

conner12's Achievements

Vic

Vic (3/54)

0

Reputation

  1. client side: 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 addEvent ("showGUI", true) addEventHandler ("showGUI",root,show) function takeJ() triggerServerEvent("setPilot",localPlayer) showCursor (false) end function Exit() guiSetVisible(showwindow, false) showCursor(false) end server side: blip = createBlip ( 1968, -2187.7998046875, 12.5, 56 ) marcadorgui = createMarker (1968, -2187.7998046875, 12.5, "cylinder", 1.5, 255, 255, 0, 200) function showGUI2 (player) if (isPedInVehicle (player)) then return end triggerClientEvent (player,"showGUI",getRootElement(),player) end addEventHandler ("onMarkerHit",marcadorgui,showGUI2) function createpilotTeam() PilotTeam = createTeam ("Pilot", 255, 255, 0) end addEventHandler ("onResourceStart", resourceRoot, createpilotTeam) function joinpilot() setPlayerTeam(source,PilotTeam) setElementModel (source, 61) setPlayerNametagColor ( source, 255, 255, 0 ) outputChatBox("You are now employed as pilot.",source,0,255,0) end addEvent("setPilot", true) addEventHandler("setPilot",root,joinpilot)
  2. no creo que no me has entendido, en el server side tengo un marker creado pero cuando triggueo la GUI no me la muestra.
  3. Bueno le he dado a este script pero no me muestra el gui, ya intente pero no se donde estoy mal. aqui esta el client: 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 addEvent ("showGUI", true) addEventHandler ("showGUI",root,show) function takeJ() triggerServerEvent("setPilot",localPlayer) showCursor (false) end function Exit() guiSetVisible(showwindow, false) showCursor(false) end por favor necesito ayuda
  4. bueno gente andaba mirando como colocar skins y se me vino a la mente esta idea de poner mis skins a mi server, pero no se que pasa no quiere funcionarme alguien me ayuda? aqui esta el meta: y aca esta el client side: la verdad no tengo ni idea de donde esta mal porque me corre todos los skins excepto los 3 ultimos el de army, security y el de fbi alguien porfavor que me ayude
  5. Bueno hola a todos, vengo ya hace rato experimentando y creando algunos scripts simples y otros complejos. Pero no me he interesado mucho en los gui en tal. Para llegar al grano, necesito que alguien me diga como crear un panel y abrirlo con una tecla. Ej: presionar la tecla F4 para que se abra un panel qie me diga las stats. PD: solo necesito un ejemplo y si es posible el nombre de las funciones. Saludos
×
×
  • Create New...