Jump to content

EstrategiaGTA

Members
  • Posts

    684
  • Joined

  • Last visited

Everything posted by EstrategiaGTA

  1. I gave him the solution for the event he was using, he did not ask for better perfomance...
  2. Use this: local eventMarker = createMarker(2031.0009765625, -1417.849609375, 18, "arrow", 2.0, 0, 255, 0, 200) addEventHandler("onPlayerMarkerHit", getRootElement(), theFunction) And in the function add a check like this, to see if the marker that was hit is eventMarker: theFunction (markerHit) if markerHit == eventMarker then --your code end end
  3. Lo está haciendo bien. El evento onPlayerDamage server side no se puede cancelar (no tendrá ningún efecto).
  4. local marker = {} function Test() marker[source] = createMarker(-1055.3283691406,-1679.3109130859,76,"cylinder",5.5,255,255,0,170 ) end addEvent("Test", true) addEventHandler("Test",root,Test) function TestMarker(hitPlayer) if source == marker[hitPlayer] then exports.sidechat:outputSideChat ( "test", 255, 0, 0) end end addEventHandler("onClientMarkerHit", root,TestMarker) Try with this.
  5. Yo te recomendaría en la medida de lo posible utilizar tablas. Utiliza elementData cuando necesites acceder a esos datos desde otro resource, o desde el otro lado (client-server).
  6. Where is source defined, when you are inserting it into the table?
  7. Please, explain what you want in a better way. I didn't really understand.
  8. Pues tiene que funcionar así como está el código...
  9. ¿Está en client-side? Por eso da error, usa localPlayer, y donde pusiste player en realidad es el comando.
  10. Perdón. Usa esto (testeado): setPedAnimation (player, "carry", "crry_prtial", 0, false, true, false, true)
  11. Usa esto: setPedAnimation (player, "carry", "crry_prtial", 0, true, false, true, false)
  12. Try with this: BTNClose = guiCreateButton(234, 325, 95, 30, "Close", false, Window) addEventHandler("onClientGUIClick", BTNClose, closeMain, false) function closeMain() if (guiGetVisible(Window) == true ) then guiSetVisible(Window, false) showCursor(false) end end Don't do this.
  13. Sure, liar, I read your post saying it was leaked from client side, I know it is bad but I really want this, etc... Make one yourself and don't leak others' works.
  14. You have to either use SQLite or a MySQL database.
  15. Use this: function respawnBus (thePlayer) local model = getElementModel(source) if model == 431 then if not getVehicleOccupants (source) then setTimer (function () respawnVehicle (source) end, 5000, 1) end end end addEventHandler ("onVehicleExit", root, respawnBus)
  16. We don't give support for leaked scripts...
  17. You are not getting the vehicle's model.
  18. você está em uma sessão Portuguesa. por favor, manter o Português... Obrigado You're not a moderator and I also wrote my post in the best Portuguese I can speak, so shut the hell up Thank you, rotts... WTF name? vc não é um moderador e Eu escrivin o message tam ben como puiden, CALE-SE. Obrigado rotts que nick pff Deus
  19. He didn't steal anything, he posted an example from the Wiki. Turbo, I'll give you an example which would work with the Wiki example you posted... Adding this line to the end of the code, the dx Text would disappear within 5 seconds after the resource is started. setTimer(removeEventHandler,5000,1,"onClientRender", root, createText)
  20. Añade estas líneas: function WaterOff () if obj[localPlayer] then destroyElement(obj[localPlayer]) end end addCommandHandler("wateroff",WaterOff)
  21. Draw the text with onClientRender + addEventHandler, and use a setTimer for 5 seconds (5000ms) with onClientRender + removeEventHandler-
  22. Usa esta useful function: isMouseInPosition
×
×
  • Create New...