LeroY

Members
  • Content Count

    31
  • Joined

  • Last visited

Community Reputation

0 Neutral

About LeroY

  • Rank
    Rat

Details

  • Gang
    DNR
  • Location
    Donetsk
  • Occupation
    Donetsk

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. LeroY

    Get vehicle size

    How to get size of vehicle? Start_x, End_x and sum dist and height? Get position components or ... ?
  2. LeroY

    Miner in MTA

    I had such an idea. There were first developments, but they were postponed. It makes no sense. Because Lua is very slow.
  3. Help me. Can I access the player's memory via a C++ module for MTA? For example, change some inaccessible car settings.
  4. Is there a shader раrrаIaх?
  5. How to make the player move in the recharge animation? setPedAnimation(source,"UZI","UZI_RELOAD",-1,false,false,false,false) setPedAnimation(source,"UZI","UZI_RELOAD",-1,false,false,false,false) I used: setPedAnimation(source,"UZI","UZI_RELOAD",0,false,true,true,true) Then the animation can not be brought down. How to be?
  6. In general, it seems just impossible. Just manually re-create the mapping. THE TOPIC IS CLOSED!
  7. can it be possible to somehow translate this function into a reverse action? its author Essle Function to translate angles of Euler into quaternions. Arguments: RotX, RotY, RotZ Return: RotX, RotY, RotZ, RotW function math.quaternion(x, y, z) local c = { math.cos(math.rad(-x)), math.cos(math.rad(-y)), math.cos(math.rad(z)) } local s = { math.sin(math.rad(-x)), math.sin(math.rad(-y)), math.sin(math.rad(z)) } local t = { c[2] * c[3], s[1] * s[2] * s[3] + c[1] * c[3], c[1] * c[2] } return math.drt(1.0 + t[1] - t[2] - t[3], (c[3] * s[1] - c[1] * s[2] * s[3]) - (-s[1] * c[2])), math.drt(1.0 - t[1] + t[2] - t[3], s[2] + (c[1] * s[2] * c[3] + s[1] * s[3])), math.drt(1.0 - t[1] - t[2] + t[3], (s[1] * s[2] * c[3] - c[1] * s[3]) - (c[2] * s[3])), math.drt(1.0 + t[1] + t[2] + t[3]) end function math.drt(a, b) a = math.sqrt(math.max(0.0, a)) * 0.5 return (b and ((b < 0) and -math.abs(a) or math.abs(a)) or a) end
  8. Help me, please, as fix convert quartenion to euler angles in .ipl files I'm getting an incorrect turn of the object. But this does not happen with all the objects, but only with a part. function quaternionToEuler(q) q.x = q[1] q.y = q[2] q.z = q[3] q.w = q[4] local sqx = q.x * q.x local sqy = q.y * q.y local sqz = q.z * q.z local sqw = q.w * q.w local unit = sqx + sqy + sqz + sqw local test = (q.x * q.y) + (q.z * q.w) if (test > 0.499999999 * unit) then return {0.0,(2 * math.atan2( q.x, q.w ) * 57.295779513082320876798154814105) % 360,90.0} elseif ( test < -0.499999999 * unit ) then return {0.0,(-2 * math.atan2( q.x, q.w ) * 57.295779513082320876798154814105) % 360,270.0} end return { (math.atan2((2 * q.x * q.w) - (2 * q.y * q.z) , 1 - (2 * sqx) - (2 * sqz)) * 57.295779513082320876798154814105) % 360, (math.atan2((2 * q.y * q.w) - (2 * q.x * q.z) , 1 - (2 * sqy) - (2 * sqz)) * 57.295779513082320876798154814105) % 360, (math.asin(2 * test) * 57.295779513082320876798154814105) % 360 } end
  9. It's like a bug mta. Can you create a report for a bug? I just do not know much English.
  10. Yes. I' am tested on runcode or on custom resource (client.lua, meta.xml). Server standart resource pack, running on only "play" mode.
  11. I have: Processor: Core I7-3630QM Video card: GT740M OC RAM: 8 GB DDR3
  12. help me, please, as fix from peds dropping fps? I'am created 20 ped's and fps dropped on 46 frame per second. As have fix this problem? -- CLIENTside for i = 1, 20 do local data = dillers[i] createPed(data.skinid,data.x,data.y,data.z) end They are all standing side by side. I' am sorry, bad speak on english. I am don't speak english.