Jacobob14 Posted June 2, 2014 Share Posted June 2, 2014 I'm trying it on my radar next to the blip appears the nametag but does not work which is not the problem something like http://prntscr.com/3ou949 dxSetRenderTarget( mapRadar,true ) for i, v in ipairs( blips ) do local rot = getPedCameraRotation( localPlayer ) dxDrawImage(v.x-20/2, v.y-15, 30, 20,icons[v.icon]) end for i, v in ipairs(getElementsByType('player') ) do if v ~= localPlayer then local r,g,b = getPlayerNametagColor(v) local name= getPlayerName(v) local px,py = getElementPosition(v) local p_x = (3000+px)/6000*MimgW local p_y = (3000-py)/6000*MimgH local prot = getPedRotation( v ) local p_blipsize = 20-currentZoomState dxDrawImage (p_x-p_blipsize/2,p_y-p_blipsize/2,25,17, icons[1],0,0,0,tocolor(r,g,b)) dxDrawText ( name, p_x-p_blipsize/2,p_y-p_blipsize/2, 0,0, tocolor ( r, g, b, 255 ), textScale, textFont, "left", "top", false, false, true, true ) end end dxSetRenderTarget( ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now