leonmrtin123 Posted December 15, 2015 Share Posted December 15, 2015 (edited) Bueno queria pedir ayuda estoy haciendo un job, el problema es que al pararme en el marker me congela el juego lo peor de esto es que en el debugscript 3 no me dice nada!!. Client: function job1() ventana = guiCreateWindow(235, 110, 317, 351, "Trabajo de colectivero Argentina 1.0", false) guiWindowSetSizable(ventana, false) boton1 = guiCreateButton(10, 73, 126, 55, "Quiero el trabajo!", false, ventana) guiSetFont(boton1, "default-bold-small") boton2 = guiCreateButton(10, 189, 126, 55, "Renuncio!", false, ventana) guiSetFont(boton2, "default-bold-small") boton3 = guiCreateButton(92, 278, 126, 55, "Cerrar", false, ventana) guiSetFont(boton3, "default-bold-small") label = guiCreateLabel(143, 123, 164, 155, "Se le pagara 350$ por parada.", false, ventana) guiSetFont(label, "default-bold-small") guiSetVisible(job1(), true) showCursor(true) addEventHandler("onClientGUIClick", boton1, darJ, false) addEventHandler("onClientGUIClick", boton2, darR, false) addEventHandler("onClientGUIClick", boton3, exxit, false) end addEvent("abri", true) addEventHandler("abri", localPlayer, job1) function dxtext() dxDrawText("Trabajo de colectivero 1.0", 13 + 1, 17 + 1, 346 + 1, 71 + 1, tocolor(0, 0, 0, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Trabajo de colectivero 1.0", 13, 17, 346, 71, tocolor(21, 245, 242, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) end function verdx() addEventHandler ("onClientRender", root, dxtext) end addEvent("verr", true) addEventHandler("verr", localPlayer, verdx) function darJ() showCursor(true) triggerServerEvent("darJJ", getLocalPlayer()) end function darR() showCursor(true) triggerServerEvent("darRR", getLocalPlayer()) end function exxit() guiSetVisible(job1(), false) showCursor(false) end Server local team1 = createTeam("Colectivero", 255, 206, 7) local team2 = createTeam("Civil", 255, 229, 204) local markerc = createMarker(1782.20776, -1867.82617, 13.56972, "cylinder", 1.5, 255, 255, 0, 170) local blip = createBlip(1782.20776, -1867.82617, 13.56972, 56) function alentrar(player) triggerClientEvent(player, "abri", player) end addEventHandler("onMarkerHit", markerc, alentrar) function verdxx(player) triggerClientEvent(player, "verr", player) end addEventHandler("onMarkerHit", markerc, verdxx) function darC() setPlayerTeam (source, team1) end addEvent("darJJ", true) addEventHandler("darJJ", getRootElement(), darC) function darRN() setPlayerTeam(source, team2) end addEvent("darRR", true) addEventHandler("darRR", getRootElement(), darRN) Edited December 16, 2015 by Guest Link to comment
Sasu Posted December 15, 2015 Share Posted December 15, 2015 Ni idea de porque se tildaba el juego pero te cambie una cositas del client y ahora funciona, fijate bien en los cambios que son muy importantes. Perdón por no explicarte pero no tengo mucho tiempo. addEventHandler("onClientResourceStart", resourceRoot, function () ventana = guiCreateWindow(235, 110, 317, 351, "Trabajo de colectivero Argentina 1.0", false) guiSetVisible(ventana, false) guiWindowSetSizable(ventana, false) boton1 = guiCreateButton(10, 73, 126, 55, "Quiero el trabajo!", false, ventana) guiSetFont(boton1, "default-bold-small") boton2 = guiCreateButton(10, 189, 126, 55, "Renuncio!", false, ventana) guiSetFont(boton2, "default-bold-small") boton3 = guiCreateButton(92, 278, 126, 55, "Cerrar", false, ventana) guiSetFont(boton3, "default-bold-small") label = guiCreateLabel(143, 123, 164, 155, "Se le pagara 350$ por parada.", false, ventana) guiSetFont(label, "default-bold-small") addEventHandler("onClientGUIClick", boton1, darJ, false) addEventHandler("onClientGUIClick", boton2, darR, false) addEventHandler("onClientGUIClick", boton3, exxit, false) end ) function job1() guiSetVisible(ventana, true) showCursor(true) end addEvent("abri", true) addEventHandler("abri", root, job1) function dxtext() dxDrawText("Trabajo de colectivero 1.0", 13 + 1, 17 + 1, 346 + 1, 71 + 1, tocolor(0, 0, 0, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Trabajo de colectivero 1.0", 13, 17, 346, 71, tocolor(21, 245, 242, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) end function verdx() addEventHandler ("onClientRender", root, dxtext) end addEvent("verr", true) addEventHandler("verr", root, verdx) function darJ() showCursor(true) triggerServerEvent("darJJ", getLocalPlayer()) end function darR() showCursor(true) triggerServerEvent("darRR", getLocalPlayer()) end function exxit() guiSetVisible(ventana, false) showCursor(false) end Link to comment
leonmrtin123 Posted December 16, 2015 Author Share Posted December 16, 2015 Muchas gracias me funciono xDDD. Link to comment
Recommended Posts