Jump to content

طلب كود


AE.

Recommended Posts

Posted

السلام عليكم ورحمة الله وبركاتة

ِلو سمحتم شباب ابي كودات او فنكشنات

حقت الكلام الي يجي فوق الماركر او الكلام اللي يجي فوق الماركر

في كتير مودات مثلا في عند الوزاره مود البقاله تلاقي فوق الماركر كلام مكتوب

بقاله الوزاره

Posted

Client

addEventHandler("onClientRender", getRootElement(),  
function() 
                local x, y, z = getElementPosition(markerName) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

text = الكلام الي تبيه فوق الماركر

markerName = اسم الماركر الي تبي فوقه الكلام

الكود كلنت + لازم يكون مع ماركر السيارات

________________________________________________________________

Server

addEventHandler("onRender", getRootElement(),  
function() 
                local x, y, z = getElementPosition(markerName) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

text = الكلام الي تبيه فوق الماركر

markerName = اسم الماركر الي تبي فوقه الكلام

الكود سيرفر + لازم يكون مع ماركر السيارات

جرب و قول

Posted
Client
addEventHandler("onClientRender", getRootElement(),  
function() 
                local x, y, z = getElementPosition(markerName) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

text = الكلام الي تبيه فوق الماركر

markerName = اسم الماركر الي تبي فوقه الكلام

الكود كلنت + لازم يكون مع ماركر السيارات

________________________________________________________________

Server

addEventHandler("onRender", getRootElement(),  
function() 
                local x, y, z = getElementPosition(markerName) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

text = الكلام الي تبيه فوق الماركر

markerName = اسم الماركر الي تبي فوقه الكلام

الكود سيرفر + لازم يكون مع ماركر السيارات

جرب و قول

ماشتغل الكود

addEventHandler("onRender", getRootElement(), 
function() 
                local x, y, z = getElementPosition(MxXx1) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("markerr", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("marker", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

..

Posted
Client
addEventHandler("onClientRender", getRootElement(),  
function() 
                local x, y, z = getElementPosition(markerName) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

text = الكلام الي تبيه فوق الماركر

markerName = اسم الماركر الي تبي فوقه الكلام

الكود كلنت + لازم يكون مع ماركر السيارات

________________________________________________________________

Server

addEventHandler("onRender", getRootElement(),  
function() 
                local x, y, z = getElementPosition(markerName) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

text = الكلام الي تبيه فوق الماركر

markerName = اسم الماركر الي تبي فوقه الكلام

الكود سيرفر + لازم يكون مع ماركر السيارات

جرب و قول

server?

دابليو تي اف

شوف كودك انت بس ركز ترا مافيه افنت بالسيرفر حق ريندر (مو موجود)ز

ثاني شي الفنكشات ذي كلينت :?

Posted
مستحيل جربته قبل ما اعطيك ^

كلينت اشتغل سيرفر ماشتغل

بس مشكور

Posted
مستحيل جربته قبل ما اعطيك ^

كلينت اشتغل سيرفر ماشتغل

بس مشكور

أكـيد الـكود كـلنت #,

Posted
Client
addEventHandler("onClientRender", getRootElement(),  
function() 
                local x, y, z = getElementPosition(markerName) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

text = الكلام الي تبيه فوق الماركر

markerName = اسم الماركر الي تبي فوقه الكلام

الكود كلنت + لازم يكون مع ماركر السيارات

________________________________________________________________

Server

addEventHandler("onRender", getRootElement(),  
function() 
                local x, y, z = getElementPosition(markerName) 
                local x2, y2, z2 = getElementPosition(localPlayer) 
                if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then 
                    local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) 
                    if(sx) and (sy) then 
                        local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) 
                        if(distance < 30) then 
                            dxDrawText("text", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") 
                            dxDrawText("text", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") 
            end 
        end 
    end 
end) 

text = الكلام الي تبيه فوق الماركر

markerName = اسم الماركر الي تبي فوقه الكلام

الكود سيرفر + لازم يكون مع ماركر السيارات

جرب و قول

مـسوي خبيصة #

خطأ بحدث الرندر #,

وحاط كود كلنت بسيرفر ؟

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