Search the Community
Showing results for tags 'pos'.
-
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?
-
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
-
This is the code: When i type twice " /asd " the marker position does not change.. How to fix this?
-
I want create a script, which create a marker with random position, from a table. How to make this?
-
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)
- 1 reply
-
- dxdrawimage
- image
- (and 5 more)
-
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, ... )