Quantcast

Jump to content

» «
Photo

Draw text to the map in 3D

1 reply to this topic
Tarackgame
  • Tarackgame

    Square Civilian

  • Members
  • Joined: 26 Apr 2016
  • Hungary

#1

Posted 30 December 2017 - 08:26 PM

How can i draw texts on the map in 3D? (Like: MP Mission markers, ETC)

 

Thank you!


EdUaRdO - Brazil
  • EdUaRdO - Brazil

    Old Retired Scripter

  • Members
  • Joined: 14 Nov 2010
  • None

#2

Posted A week ago

How can i draw texts on the map in 3D? (Like: MP Mission markers, ETC)

 

Thank you!

 

Try that:

float x1, y1;
BOOL screenCoords =  _WORLD3D_TO_SCREEN2D(coordX, coordY, coordZ, &x1, &y1);
SET_TEXT_FONT(0);
SET_TEXT_SCALE(0.0, 0.555);
SET_TEXT_COLOUR(255, 255, 255, 255);
SET_TEXT_CENTRE(true);
SET_TEXT_DROPSHADOW(0, 0, 0, 0, 0);
SET_TEXT_EDGE(0, 0, 0, 0, 0);
_SET_TEXT_ENTRY("STRING");
_ADD_TEXT_COMPONENT_STRING("YOUR TEXT HERE");
_DRAW_TEXT(x1, y1);
SET_TEXT_DROPSHADOW(0, 0, 0, 0, 0);




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users