  # LeroY

Members

31

0 Neutral

• Rank
Rat

• Gang
DNR
• Location
Donetsk
• Occupation
Donetsk

## Recent Profile Visitors

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

1. How to get size of vehicle? Start_x, End_x and sum dist and height? Get position components or ... ?
2. 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. UPPP
6. 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?
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 * c, s * s * s + c * c, c * c } return math.drt(1.0 + t - t - t, (c * s - c * s * s) - (-s * c)), math.drt(1.0 - t + t - t, s + (c * s * c + s * s)), math.drt(1.0 - t - t + t, (s * s * c - c * s) - (c * s)), math.drt(1.0 + t + t + t) 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 q.y = q q.z = q q.w = q 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. This is not what I wanted
13. 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.