Jump to content

][ مساعدة ][ getElementPosition


Recommended Posts

اسلام عليكم

احتاج مساعدة في شي بسيط ما عرفت له

بس جربت

local px, py, pz = getElementPosition ( getLocalPlayer ( ))
pos = guiCreateLabel(299, 689, 305, 39, " ".. px .." ".. py .."".. pz.." ", false)
guiLabelSetVerticalAlign(pos, "center") 

هو يعطي الموقع بس المشكلة

ابيه يتغير كل ما تحرك الاعب

كل ما يتقدم يتغير x,y,z

و شكرا

Link to comment

ما يشتغل



pos = guiCreateLabel(213, 688, 33, 46, "", false)


addEventHandler ( "onClientRender" , root , function ( ) 
if ( guiGetVisible ( pos ) == true ) then 
local x,y,z = getElementPosition ( localPlayer ) 
guiSetText ( pos , x..","..y..","..z )
end
end )
Quote

 

 

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