local Url = "crown.png" --- اسسم الصورة هنا
local zUP = 10 ---- ارتفأع الصورة
addEventHandler( "onClientRender", root, function ( )
for _, v in ipairs ( getElementsByType ( "player" ) ) do
if ( getElementData ( v, "VIPData" ) == true ) then
local x, y, z = getElementPosition( v )
local Mx, My, Mz = getCameraMatrix( )
if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then
local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 )
if ( WorldPositionX and WorldPositionY ) then
dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url )
end
end
end
end
end )