Jump to content

Search the Community

Showing results for tags 'math'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 8 results

  1. local target = a point with some meters ahead of the hydra. maybe 200 local m1 = createProjectile(hydra,20,hydraleftwingposition,1, target,0,0,0,hydra.matrix.forward) local m2 = createProjectile(hydra,20,hydrarightwingposition,1, target,0,0,0,hydra.matrix.forward) how can i get missiles to the same point or that gather along the way without slowing velocity, i already try setElementPosition and setElementVelocity, findRot and findRot3D but i can't make it work because i don't know how exactly to do it mathematically. can someone help me, pls? Thanks in advance
  2. ENGLISH Let's say I have a player and I want to spawn a car in front of it with a specific distance away from the player. It must considers the player's rotation. It involves some math calculations, but I can't formulate it. BRASIL Vamos supor que eu tenha um player e eu queira spawnar um carro na frente dele com uma distância específica. Para fazer isso, deve levar em consideração a rotação atual do player. Eu sei que isso envolve cálculos matemáticos, mas não consegui formulá-los. Thanks all
  3. I want know what fail in my script because i'm new in LUA Scripting and if a "professional" resolve my problem maybe i can learn of that In this script i want make math problems and if the players resolve this gain $2k setTimer(function() x1 = math.random(500) x2 = math.random(600) outputChatBox("#1860F1[Math]#ffffff " .. x1 .. " + " .. x2 .. " = ", root, 255, 255, 255, true) end, 30000, 0) function mathSystem(text, source) outputChatBox(text, source, 255, 255, 255, true) if text == x1 + x2 then givePlayerMoney(source, 20
  4. Hello! I am trying to do a boundary system based on coordinates, so no col shapes or anything. Unfortunately I'm not that good at math, but I tried doing it based on found results on the internet. My problem is that this whole script is not working how it should, check it for yourself, it has debug outputs and visible markers for corners and the center. Why does the width and height return a much bigger number than the calculatedX and calculatedY? Why does the calculatedX and calculatedY return always the same? Why does the width and height change values as I move a
  5. Hi. I want to create object in front of the coordinates for the angle. createObject(objectid, x + DISTANCE * -math.sin(angle + 90.0, degrees), y + DISTANCE * math.cos(angle + 90.0, degrees), z) It code WORK in SAMP. And not work in MTA. Since when are the sinuses and cosines different?
  6. Working on a First Person Shooter gamemode, and i found a bug. The event onClientPreRender causes some delay at attachElements. Can somebody reproduce attachElements maths for me?
  7. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته .. كيفكم شباب ؟ ان شاء الله تكونو بأتم الصحة والعافية .. راح اشرحلكم اهم الاشياء في math نبدأ بسم الله أول شيء ال math.ceil ► يقرب العدد العشري الى اقرب عدد صحيح : تقولي كيف يعني ؟ يعني الارقام الي زي كذا 1.6 تتحول الى 2 مافهمت ؟ هذا يحول الرقم على حسب العدد العشري فأذا كان من 1 - 4 فيصير نفس الرقم الي هو عليه مثلاً : 1.3 local s = math.ceil(1.3) print ( s) -- 1 والارقام من 5 - 9 تتحول الى الرقم التالي مثلاً : 1.
  8. Hi! I want to create a fuel system. But I don't know how to calculate the cap's position. I know, that I can do it with getElementPosition, getElementRotation and Offset. But how?
  • Create New...