SaifPro Posted August 22, 2014 Share Posted August 22, 2014 كود الكتابة علي المركر بعد اذنكو شكراُ بعنب مركر عليه كلمة Link to comment
Dr.Xen Posted August 22, 2014 Share Posted August 22, 2014 تفضل :- Side Client local Url = dxCreateTexture("2.png")--هنا اسم الصورة addEventHandler( "onClientRender", root, function ( ) local x, y, z =1489.5,-1795.0999755859,12.5 -- هنا الاحداثيات dxDrawMaterialLine3D(x, y, z+0.6, x, y, z+1.5, Url, 1, tocolor(255,255,255,255)) end ) Link to comment
#DRAGON!FIRE Posted August 22, 2014 Share Posted August 22, 2014 لو بحثت بتلقى طلبكـ .. : . لين يصير زي ما تبي zUP جرب زود ع متغير local Url = "Image.png" --- اسسم الصورة هنا local zUP = 7 ---- ارتفأع الصورة addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( marker ) 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 ) Link to comment
SaifPro Posted August 22, 2014 Author Share Posted August 22, 2014 كود الكتابة علي المركر بعد اذنكو شكراُبعنب مركر عليه كلمة كلام مش صورة Link to comment
#DRAGON!FIRE Posted August 22, 2014 Share Posted August 22, 2014 برضو لو بحثت بتلقى طلبكـ .. هذا كتابة ع ماركر Just remove marker on line 2 and set ur marker name and set Text addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( marker ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z +1, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawText ( "Text", WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, tocolor(255,255,255,255), 1, "arial" ) end end end ) Link to comment
SaifPro Posted August 22, 2014 Author Share Posted August 22, 2014 برضو لو بحثت بتلقى طلبكـ .. هذا كتابة ع ماركرJust remove marker on line 2 and set ur marker name and set Text addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( marker ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z +1, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawText ( "Text", WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, tocolor(255,255,255,255), 1, "arial" ) end end end ) شكراً 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