ذا كود جبته من زاحف
local Url = "crown.png" --- اسسم الصورة هنا
local zUP = 16 ---- ارتفأع الصورة
addEventHandler( "onClientRender", root, function ( )
local x, y, z = getElementPosition( localplayer )
local Mx, My, Mz = getCameraMatrix( )
local accName = getAccountName ( getPlayerAccount ( localplayer ) )
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "V.I.P" ) ) then
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 )