Jump to content

آحط تكست بعآلم وآنترور معين


Recommended Posts

سلام عليكم

كيف آحط هآلتكست في عآلم وآنترور معينين

يعني لو آنآ بعآلم 0 مآ آشوفهآ لو بعآلم 5 آشوفهآ

local x,y,z = -3449.00708,-3005.72412,13.58312
 
addEventHandler("onClientRender",getRootElement(),
function()
    local px,py,pz = getElementPosition(getLocalPlayer())
    local distance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz )
    if distance <= 100 then
        local sx,sy = getScreenFromWorldPosition ( x, y, z+0.95, 0.06 )
        if not sx then return end
        local scale = 1/(0.3 * (distance / 100))
        dxDrawText ( "تجربة", sx, sy - 5, sx, sy - 5, tocolor(255,255,255,255), math.min ( 0.4*

(80/distance)*1.4,4), "default-bold", "center", "bottom", false, false, false )
    end
end
)

 

Link to comment

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