Sign in to follow this  
salh

][ مساعدة ][ 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

و شكرا

Share this post


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

 

Share this post


Link to post

ما يشتغل



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

 

 

Share this post


Link to post

مجربه وشغال معي تمام , تأكد من عندك انت

Share this post


Link to post

شكرا

اسف طلع الغلط من عندي 🙂

Share this post


Link to post

العفو حياك الله 

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.