Jump to content

find blip coordinates in circle radar


XaskeL

Recommended Posts

help me find blip coordinates on frames

ex, ey this blip position
142 distance from center in radar to the brink of radar
 

local camx,camy,_ = getElementPosition(camera)
		
local ex,ey = 1164.468, -948.094
local t = -math.deg(math.atan2(camx - ex, camy - ey)) 
local r = t < 0 and t + 360 or t

local movx = (math.sin(camrot-r) * 142)
local movy = (math.cos(camrot-r) * 142) 

dxDrawImage(centerx + movx - 12, centery + movy - 12, 24, 24, 'images/icons/4.png', 0, 0, 0, white, false)


Screen

image.png

I absolutely do not understand math, so I hope that someone will help.

Edited by XaskeL
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...