naz19 Posted March 12, 2012 Share Posted March 12, 2012 how to create 3D text anywhere in MTA world??? Link to comment
Castillo Posted March 12, 2012 Share Posted March 12, 2012 https://community.multitheftauto.com/index.php?p= ... ls&id=3090 Link to comment
GTX Posted March 12, 2012 Share Posted March 12, 2012 local x = 2306.7126464844 local y = -3898.6943359375 local z = 236.62010192871 addEventHandler("onClientRender",getRootElement(), function() local px,py,pz = getElementPosition(getLocalPlayer()) local distance = getDistanceBetweenPoints3D ( x,y,z,px,py,pz ) if distance <= 150 then local sx,sy = getScreenFromWorldPosition ( x, y, z+0.95, 0.06 ) if not sx then return end local scale = 1/(0.3 * (distance / 150)) dxDrawText ( "3D text", sx, sy - 30, sx, sy - 30, tocolor(255,255,255,255), math.min ( 0.4*(150/distance)*1.4,4), "bankgothic", "center", "bottom", false, false, false ) end end ) 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