Jump to content

MisterQuestions

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by MisterQuestions

  1. Maybe you should add a check for vehicle to see if its blown or with low/invalid health then you see if you save it or no
  2. La mayoria que encontraras son viejas o muy simples, pero es una forma de empezar. Acerca de remover un objeto para una dimension te recomiendo hacerlo en el client-side & cuando salgas de esa dimension restaurarlo.
  3. https://wiki.multitheftauto.com/wiki/Element/Shader Para aplicarlas o asi puedes dibujarlas como una imagen o usar https://wiki.multitheftauto.com/wiki/EngineApplyShaderToWorldTexture
  4. Once someone finishes you add him to ranking board, then on race end/stop podium should get first 3 places of rankingboard and done.
  5. You can create your sql file otherwise you can connect to a server mostly common mysql. Note: You should use dbConnect for both methods.
  6. You don't need to loop if you want to access it directly using: unlockable[1] refers to '{"Well done noob.", 1}' using: unlockable[1][1] refers to "Well done noob."
  7. Save resources count with 'getResources()', refresh them and then with another variable get resources again, since its a table just get its lenght and calculate difference
  8. Well your topic talks about a function you don't even use, how ever you also should break the loop. Edit: The delay may be caused cause loop and way you get data, you should organize more such spectator system otherwise lag will keep, is really needed do all such things everytime you call to a random spectate target?
  9. Puedes hacerlo sin render target sin ningun problema.
  10. Eso es una solución peor a la que le di En todo caso sería más fácil realizar un math.min & math.max en cuanto a la escala.
  11. Pues sería una solución muy básica, pero si.
  12. Una solución mejor sería una variable para la escala, no crees? En ese caso algo como: local screenX, screenY = guiGetScreenSize() local screenScale = screenY / 768 Así despues cualquier tamaño o posición lo podrás poner conforme a la escala esa, como ejemplo: local posX = 512 * screenScale local posY = 200 * screenScale Aunque claro es solo una manera muy básica.
  13. Evita todo esto con OOP & .matrix De ahi puedes hacer :transformPosition(Vector3(offset)).
  14. Es muy simple. Crea una tabla siendo el contenedor del map, ahi guarda los elementos y sus datos, luego solo envialo a quien quieras, supongo haras algo como un MultiGameMode.
  15. Basically you can't use it like that due your script is client-side.
  16. Hello there, how could i calculate the last collision point below an element taking into account its rotation?
  17. What im exactly searching for on it? Is there any other way to do something like it for a render function? (i mean without being to heavy).
  18. Well im here again! Thought was fixed but nope, there's some problem when calculating the boundingbox with "rotation" that way... You can see results here: http://imgur.com/a/nl5zd. It doesn't gets a good rectangle, only on certain "fixed" rotations as 0,90,180,270,360. Any idea of what to do then?
  19. Edit: Forget it, got the awnser, thanks for your help! (Was using bad positions)
  20. Hey there, is there anyway to get an element bounding box with its rotation? How to do it? Thanks for reading and hope you can awnser my question. Edit: Is posible to get it when an element is not streamed?
  21. Use onPlayerWasted event. Don't do setElementPosition for spawning, as @ViRuZGamiing said. As wiki says on 'setElementPosition': Attention: Do not use this function to spawn a player. It will cause problems with other functions like warpPedIntoVehicle. Use spawnPlayer instead.
  22. Using Multi Theft Auto v1.5.3-release-10791.
  23. cache no funciona con <file> cache es para los scripts, si lo pones como false este script no se descargara (sólo es para los client-side). con file puedes usar download="false", aunque para usarlos los tienes que descargar despues asi que sale igual. Podrias hacer una funcion para codificarlos y luego remplazar la funcion de la carga con algo para des-encriptarlos.
×
×
  • Create New...