Jump to content

Sergioks

Members
  • Posts

    262
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Sergioks

  1. Si, eso fue lo que le cambie y se arreglo. Gracias a Los 2 Por La Ayuda
  2. me dice esto: ERROR: Server.lua:130: arrempt to call global 'addEventhandler' ( a nil value ) ---- Ha No Ya Lo Arregle, Gracias
  3. Si Hablas de Lo que tiene el script "Notifications" en en archivo "server.lua" es Esto: function showBox(player, value, str) if isElement(player) then triggerClientEvent(player, "CreateBox", getRootElement(), value, str) end end Pero si hablas sobre el codigo este: exports["notifications"]:showBox ( "".. tipo .."","".. message .."" ) Ese funciona en client y en server. es como el outputChatbox. Generalmente, lo unico que quiero es saber, como hacer que el mensaje aparesca por say, y que todos lo lean. ( sea outputChatbox o notifications box ) porque, he logrado que dicho script aparezca, pero poniendo en client lo mismo que puse en el post. por lo cual, solo me aparece a mi, y a nadie mas. quiero que lo lean todos ( que este en el Server.lua ) pero no se como hacerlo.
  4. Hola! Necesito Una Ayudita en un script. quiero hacer un panel de mensajes con el script 'notifications' Esta es la function de mi client: function EnviarNot() showCursor ( true ) local tipo = guiGetText (GUIEditor.combobox[1]) local message = guiGetText (GUIEditor.edit[3]) exports["notifications"]:showBox ( "".. tipo .."","".. message .."" ) end El Mensaje Me Va Bien y Todo, Pero, Por estar en Client solo yo lo veo. ¿ Como Hago para que me aparezca en Global? Enlazar el mensaje: exports["notifications"]:showBox ( "".. tipo .."","".. message .."" ) En Server.? Lo Intente poniendo todo eso de local tipo = guiGetText (GUIEditor.combobox[1]) En El Server.lua pero nada, porque no estan especificadas. ¿como hago alli? Porfavor soy un noob en esto del scripting y he tenido problemas con eso. Tambien intente con un triggerServerEvent y tampoco nada, y el TriggerClientEvent no lo se usar. porfavor alguien que pueda ayudarme a hacerlo, o facilitarme el codigo que debo poner en el server-side. Les Agradeceria MUCHO - Gracias Por Leer Mi Mensaje.
  5. Already Been Tested that and Grab However No Script With That Code. For It So many problems with this script
  6. Gracias, Si Le Funciono esto Quien diria que por añadir solamente el addEventHandler("onClientResourceStart", getRootElement(), armashop) Se Abriria el panel jaja Esta fuera de la function.. pero igual gracias por ayudarme function fun ( ) guiSetVisible(GUIEditor.window[1],true) showCursor(true) end mymarker = createMarker( -2408.4582519531, -599.47735595703, 131.7, "cylinder", 2, 255, 0, 0, 100) addEventHandler("onClientMarkerHit", mymarker, fun)
  7. GUIEditor = { button = {}, window = {} } function armashop() GUIEditor.window[1] = guiCreateWindow(219, 93, 384, 397, "Tienda De Armas", false) guiWindowSetSizable(GUIEditor.window[1], false) Colt = guiCreateStaticImage(10, 33, 64, 64, "images/9mm.png", false, GUIEditor.window[1]) Escopeta = guiCreateStaticImage(84, 33, 64, 64, "images/Escopeta.png", false, GUIEditor.window[1]) ComprarColt = guiCreateButton(10, 97, 64, 33, "Comprar\n 45$", false, GUIEditor.window[1]) guiSetProperty(ComprarColt, "NormalTextColour", "FFAAAAAA") ComprarEscopeta = guiCreateButton(84, 97, 64, 33, "Comprar\n 1000$", false, GUIEditor.window[1]) guiSetProperty(ComprarEscopeta, "NormalTextColour", "FFAAAAAA") AK47 = guiCreateStaticImage(158, 33, 64, 64, "images/AK-47.png", false, GUIEditor.window[1]) ComprarAK47 = guiCreateButton(158, 97, 64, 33, "Comprar\n 3000$", false, GUIEditor.window[1]) guiSetProperty(ComprarAK47, "NormalTextColour", "FFAAAAAA") Combate = guiCreateStaticImage(232, 33, 64, 64, "images/Combate.png", false, GUIEditor.window[1]) ComprarCombate = guiCreateButton(232, 97, 64, 33, "Comprar\n 5000$", false, GUIEditor.window[1]) guiSetProperty(ComprarCombate, "NormalTextColour", "FFAAAAAA") Inflarojo = guiCreateStaticImage(306, 33, 64, 64, "images/Inflarojo.png", false, GUIEditor.window[1]) ComprarInflarojo = guiCreateButton(306, 97, 64, 33, "Comprar\n 100$", false, GUIEditor.window[1]) guiSetProperty(ComprarInflarojo, "NormalTextColour", "FFAAAAAA") M4 = guiCreateStaticImage(10, 140, 64, 64, "images/M4.png", false, GUIEditor.window[1]) ComprarM4 = guiCreateButton(10, 204, 64, 33, "Comprar\n 4000$", false, GUIEditor.window[1]) guiSetProperty(ComprarM4, "NormalTextColour", "FFAAAAAA") Sniper = guiCreateStaticImage(84, 140, 64, 64, "images/Sniper.png", false, GUIEditor.window[1]) ComprarSniper = guiCreateButton(84, 204, 64, 33, "Comprar\n 5000$", false, GUIEditor.window[1]) guiSetProperty(ComprarSniper, "NormalTextColour", "FFAAAAAA") Uzi = guiCreateStaticImage(158, 140, 64, 64, "images/UZI.png", false, GUIEditor.window[1]) ComprarUzi = guiCreateButton(158, 204, 64, 33, "Comprar\n 2000$", false, GUIEditor.window[1]) guiSetProperty(ComprarUzi, "NormalTextColour", "FFAAAAAA") Deagle = guiCreateStaticImage(232, 140, 64, 64, "images/Desert-Eagle.png", false, GUIEditor.window[1]) ComprarDeagle = guiCreateButton(232, 204, 64, 33, "Comprar\n 250$", false, GUIEditor.window[1]) guiSetProperty(ComprarDeagle, "NormalTextColour", "FFAAAAAA") Recortada = guiCreateStaticImage(306, 140, 64, 64, "images/Saw-Off-Shotguns.png", false, GUIEditor.window[1]) ComprarRecortada = guiCreateButton(306, 204, 64, 33, "Comprar\n 5000$", false, GUIEditor.window[1]) guiSetProperty(ComprarRecortada, "NormalTextColour", "FFAAAAAA") MP5 = guiCreateStaticImage(10, 247, 64, 64, "images/Mac-2.png", false, GUIEditor.window[1]) ComprarMP5 = guiCreateButton(10, 311, 64, 33, "Comprar\n 4000$", false, GUIEditor.window[1]) guiSetProperty(ComprarMP5, "NormalTextColour", "FFAAAAAA") Tec9 = guiCreateStaticImage(84, 247, 64, 64, "images/Mac-3.png", false, GUIEditor.window[1]) ComprarTec9 = guiCreateButton(84, 311, 64, 33, "Comprar\n 2000$", false, GUIEditor.window[1]) guiSetProperty(ComprarTec9, "NormalTextColour", "FFAAAAAA") GUIEditor.button[1] = guiCreateButton(10, 354, 360, 33, "Cerrar", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") Silenciadora = guiCreateStaticImage(158, 247, 64, 64, "images/Silenciador.png", false, GUIEditor.window[1]) ComprarSilenciadora = guiCreateButton(158, 311, 64, 33, "Comprar\n 100$", false, GUIEditor.window[1]) guiSetProperty(ComprarSilenciadora, "NormalTextColour", "FFAAAAAA") Rifle = guiCreateStaticImage(232, 247, 64, 64, "images/Rifle.png", false, GUIEditor.window[1]) ComprarRifle = guiCreateButton(232, 311, 64, 33, "Comprar\n 4500", false, GUIEditor.window[1]) guiSetProperty(ComprarRifle, "NormalTextColour", "FFAAAAAA") showCursor ( true ) addEventHandler ("onClientGUIClick", ComprarColt, ComprarColt1, false) addEventHandler ("onClientGUIClick", ComprarEscopeta, ComprarEscopeta1, false) addEventHandler ("onClientGUIClick", ComprarAK47, ComprarAK471, false) addEventHandler ("onClientGUIClick", ComprarCombate, ComprarCombate1, false) addEventHandler ("onClientGUIClick", ComprarInflarojo, ComprarInflarojo1, false) addEventHandler ("onClientGUIClick", ComprarM4, ComprarM41, false) addEventHandler ("onClientGUIClick", ComprarSniper, ComprarSniper1, false) addEventHandler ("onClientGUIClick", ComprarUzi, ComprarUzi1, false) addEventHandler ("onClientGUIClick", ComprarDeagle, ComprarDeagle1, false) addEventHandler ("onClientGUIClick", ComprarRecortada, ComprarRecortada1, false) addEventHandler ("onClientGUIClick", ComprarMP5, ComprarMP51, false) addEventHandler ("onClientGUIClick", GUIEditor.button[1], Close, false) addEventHandler ("onClientGUIClick", ComprarTec9, ComprarTec91, false) addEventHandler ("onClientGUIClick", ComprarSilenciadora, ComprarSilenciadora1, false) addEventHandler ("onClientGUIClick", ComprarRifle, ComprarRifle1, false) end function fun ( ) guiSetVisible(GUIEditor.window[1],true) end marker = createMarker( -2408.4582519531, -599.47735595703, 131.7, "cylinder", 2, 255, 0, 0, 100) addEventHandler("onClientMarkerHit", marker, fun) function ComprarColt1 () showCursor ( true ) triggerServerEvent ( "onGreeting", getLocalPlayer() ) end function Close() showCursor ( false ) guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) end function ComprarEscopeta1() showCursor ( true ) triggerServerEvent ( "ComprarEscopeta1", getLocalPlayer() ) end function ComprarAK471() showCursor ( true ) triggerServerEvent ( "ComprarAK471", getLocalPlayer() ) end function ComprarCombate1() showCursor ( true ) triggerServerEvent ( "ComprarCombate1", getLocalPlayer() ) end function ComprarInflarojo1() showCursor ( true ) triggerServerEvent ( "ComprarInflarojo1", getLocalPlayer() ) end function ComprarM41() showCursor ( true ) triggerServerEvent ( "ComprarM41", getLocalPlayer() ) end function ComprarSniper1() showCursor ( true ) triggerServerEvent ( "ComprarSniper1", getLocalPlayer() ) end function ComprarUzi1() showCursor ( true ) triggerServerEvent ( "ComprarUzi1", getLocalPlayer() ) end function ComprarDeagle1() showCursor ( true ) triggerServerEvent ( "ComprarDeagle1", getLocalPlayer() ) end function ComprarRecortada1() showCursor ( true ) triggerServerEvent ( "ComprarRecortada1", getLocalPlayer() ) end function ComprarMP51() showCursor ( true ) triggerServerEvent ( "ComprarMP51", getLocalPlayer() ) end function ComprarTec91() showCursor ( true ) triggerServerEvent ( "ComprarTec91", getLocalPlayer() ) end function ComprarSilenciadora1() showCursor ( true ) triggerServerEvent ( "ComprarSilenciadora1", getLocalPlayer() ) end function ComprarRifle1() showCursor ( true ) triggerServerEvent ( "ComprarRifle1", getLocalPlayer() ) end Ese Es TODO El Client.lua
  8. function fun ( ) guiSetVisible(GUIEditor.window[1],true) end marker = createMarker( -2408.4582519531, -599.47735595703, 131.7, "cylinder", 2, 255, 0, 0, 100) addEventHandler("onClientMarkerHit", marker, fun) Ese es el codigo que uso para intentar hacer que el panel abra. me crea el marker y todo, solo que no me abre el panel
  9. Yo Ya Tengo Absolutamente todo Hecho. Ya El Script crea el Marker, y TODO Bien. lo unico que necesito es Que el panel, se abra Cuando el Jugador se pare en El Marker Aparesca el panel.. Se Que Esta Terminado el Panel sin error, porque abrio perfectamente cuando le añadi el "addCommandHandler" Para Probarlo
  10. Aqui esta el Client: http://www.4shared.com/file/xijvT3gc/Client.html y aqui el meta: http://www.4shared.com/document/P76gjqdj/meta.html
  11. Pongo exactamente como esta alli en mi Client.lua, solo que le pongo la info del marker que seria por ejemplo: marker = createMarker( -2408.4582519531, -599.47735595703, 131.7, "cylinder", 2, 255, 0, 0, 100) y el Nombre de la window. pero solo aparece el marker como antes y al entrar no pasa nada
  12. Bueno, Ya Yo Se Usar el GUI Editor y scriptear mas o menos... Solo Que aun no se como hacer para que el panel no aparezca con un comando, si no al pararse en un Marker. Plz Quien me ayuda me dijeron que onMarkerHit y CreateMarker. Ya Se Usar el CreateMarker. solo que no se como darle la Function de onMarkerHit al mismo. Es el unico script con el que eh tenido problemas -Gracias de Antemano.
  13. wow!!! It's Fantastic! ..::*Sergioks*::..
×
×
  • Create New...