# Search the Community

Showing results for tags 'pos'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• 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

• 0 Replies

• 0 Views

Found 6 results

1. ## [HELP] How to get the moving dx element position?

This is the code: local now = getTickCount() local x,y = interpolateBetween(one, one1, 0, two, two1, 0, (now - start) / ((start + 2500) - start), "Linear") local now2 = getTickCount() local x2,y2 = interpolateBetween(asd, asd1, 0, fgh, fgh1, 0, (now2 - start2) / ((start2 +2500) - start2), "Linear") if right == false then dxDrawRectangle(x, (sy_/2-20) * ym, 3* xm, 40 * ym,tocolor(255,255,255,255)) else dxDrawRectangle(x2, (sy_/2-20) * ym, 3* xm, 40 * ym,tocolor(255,255,255,255)) end -- if x >= 1063 and x <= 1073 and right == false then test = true elseif x >= 1089 and x <= 1099 and right == false then test = true elseif x >= 1158 and x <= 1172 and right == false then test = true elseif x >= 1212 and x <= 1232 and right == false then test = true elseif x >= 1276 and x <= 1293 and right == false then test = true elseif x >= 1423 and x <= 1433 and right == false then test = true elseif x >= 1476 and x <= 1487 and right == false then test = true else test = false end i want change the test to true when the rectangle is in the granted position, but how can i get the momentary position of the dx rectangle?
2. ## [HELP] How to make this script?

I want create a script, which tp a player to me, and teleport me to a player, like in admin panel, just with command. How to make this? For example: /tpto playername , and /tpme playername. And when i teleport a player to me, the player get out from vehicle
3. ## [HELP] Why not change marker position?

This is the code: When i type twice " /asd " the marker position does not change.. How to fix this?
4. ## [HELP] How to create marker with random position from table?

I want create a script, which create a marker with random position, from a table. How to make this?
5. ## dxdrawImage position

Hi! I use guieditor to add an image(with dxdrawimage) position. It is on relative, but it's don't working. We are in the server, and someone's hud sticking out from the screen. He has correct resolution. What is the problem? Here is the code: dxDrawImage(screenW * 0.6698, screenH * 0.0130, screenW * 0.3228, screenH * 0.1341, "img/hud.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
6. ## ¿Posición del ratón?

Buenas, mi duda es que quiero dibujar una imagen debajo o al lado del ratón del jugador, ¿Cómo sería esto posible? Básicamente porque quiero utilizar los valores relativos para dibujar los rectángulos o imágenes, tipo: local sx, sy = guiGetScreenSize( ) local sourceX, sourceY = 1366, 768 dxDrawText( "texto", (324/sourceX)*sx, (234/sourceY)*sy, ... )
×

• #### Social Media

×
• Create New...