Mr.Mostafa Posted August 31, 2018 Share Posted August 31, 2018 سلام عليكم كيف آحط هآلتكست في عآلم وآنترور معينين يعني لو آنآ بعآلم 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
Abdul KariM Posted August 31, 2018 Share Posted August 31, 2018 سوي تحقق getElementDimension getElementInterior Link to comment
Mr.Mostafa Posted August 31, 2018 Author Share Posted August 31, 2018 16 minutes ago, Abdul KariM said: سوي تحقق getElementDimension getElementInterior يييب صح , كفو تسلم 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