Jump to content

Radar


Recommended Posts

addEventHandler("onClientRender",root,function()
   
    local camx,camy,camz = getElementRotation(cam)
    local px,py = getElementPosition(localPlayer)
    local pix = (px+3000)/2
    local piy = -py/2+1500
        
    dxDrawRectangle(pos["rectangle"][1],pos["rectangle"][2],pos["rectangle"][3],pos["rectangle"][4],tocolor(255,255,255,255))
    dxDrawImageSection(pos["rectangle"][1],pos["rectangle"][2],pos["rectangle"][3],pos["rectangle"][4],pix-400,piy-260,800,520,"mapa.jpg",camz)
end)
 
 

Hi, what should I do to keep radar horizontally and rotate only img?

 

spacer.pngspacer.png

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...