joaosilva099 Posted September 2, 2014 Share Posted September 2, 2014 Hi all i want to draw DX text on the World map like above peds indicating what will happen when player reaches colshape near that ped someone know how cn i do that? (function) Link to comment
Anubhav Posted September 2, 2014 Share Posted September 2, 2014 Search before posting. viewtopic.php?f=108&t=79794 Link to comment
Gallardo9944 Posted September 4, 2014 Share Posted September 4, 2014 Hi all i want to draw DX text on the World map like above peds indicating what will happen when player reaches colshape near that pedsomeone know how cn i do that? (function) On the other hand, if you want to give full rotation and 3G abilities to your text, you might consider creating a render target and drawing the shader. Link to comment
ma2med Posted September 4, 2014 Share Posted September 4, 2014 You can make this: function dxDraw3DText(text,x,y,z,red,blue,green,alpha,size,maxDistance) if text and x and y and z and red and blue and green and alpha and size and maxDistance then local a, b, c = getElementPosition (localPlayer) local thex, they, thez = getScreenFromWorldPosition( x, y, z ) if a and b and c and thex and they and thez <= maxDistance then if thex and they then dxDrawText( text, thex, they, _, _, tocolor( red, blue, green, alpha ), size, "default", "center", "center" ) end end end end There is another scripts on the community. 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