Adde Posted July 4, 2013 Share Posted July 4, 2013 Hello, I wounder how I add text in markers? is it something with DxDrawText and then attach that to marker or what? I haven´t understood that yet ^^ Link to comment
Castillo Posted July 4, 2013 Share Posted July 4, 2013 Try this one: https://community.multitheftauto.com/in ... ls&id=3090 Link to comment
Adde Posted July 4, 2013 Author Share Posted July 4, 2013 That script didn´t even work Just trouble in debug. Link to comment
Jesseunit Posted July 5, 2013 Share Posted July 5, 2013 That script didn´t even work Just trouble in debug. Shame that no one seems to help you out homeboi, here's a piece of code I wrote for you: local messages = { ["¿Que? Señor?"] = { 0, 0, 3 }, ["No hablas Español, hablas Inglés."] = { 10, 0, 3 }, ["Je ne parle pas français, je parle Néerlandais."] = { 20, 0, 3 } } function text_render ( ) for i,v in pairs ( messages ) do local x, y, z = unpack ( v ) local sx, sy, _ = getScreenFromWorldPosition ( x, y, z ) if sx then dxDrawText ( i, sx, sy, sw, sh, tocolor ( 255, 200, 0, 255 ), 1.0, "default-bold" ) end end end Link to comment
Adde Posted July 8, 2013 Author Share Posted July 8, 2013 Thanks man But it doesn´t work for me Link to comment
itoko Posted July 9, 2013 Share Posted July 9, 2013 Just add that: addEventHandler("onClientRender",getRootElement(),text_render) at the end of this: local messages = { ["¿Que? Señor?"] = { 0, 0, 3 }, ["No hablas Español, hablas Inglés."] = { 10, 0, 3 }, ["Je ne parle pas français, je parle Néerlandais."] = { 20, 0, 3 } } function text_render ( ) for i,v in pairs ( messages ) do local x, y, z = unpack ( v ) local sx, sy, _ = getScreenFromWorldPosition ( x, y, z ) if sx then dxDrawText ( i, sx, sy, sw, sh, tocolor ( 255, 200, 0, 255 ), 1.0, "default-bold" ) end end end There are no event to run the function. 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