Sasu Posted July 2, 2013 Posted July 2, 2013 addEventHandler("onClientRender", root, function() local px, py, pz = getElementPosition(localPlayer) local px1, py1, pz1 = getElementPosition(ped) local distance = getDistanceBetweenPoints3D( px, py, pz, px1, py1, pz1) if isElementOnScreen(ped) and distance <= 50 then local x, y, z = getPedBonePosition(ped, 6) local sx, sy = getScreenFromWorldPosition( x, y, z+0.4) dxDrawText("Tienda de Skins", sx-100, sy, _,_,_, 2, "default-bold") end end ) How do I do to dissapear the dxDrawText when you are behind an object? State: Inactive
Castillo Posted July 2, 2013 Posted July 2, 2013 Use: isLineOfSightClear San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted July 2, 2013 Posted July 2, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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