TextDrawCreate

From SA-MP Wiki

Jump to: navigation, search

TextDrawCreate


Creates a textdraw.


Parameters:
(Float:x, Float:y, text[])
xX-Coordinate
yY-Coordinate
text[]The text in the textdraw.


ReturnsThe ID of the created textdraw


Important Note: text[] must NOT be empty or the server will crash! If you need a textdraw that shows nothing, use " " (a space) or _ (underscore)


Note: The x,y coordinate is the top left coordinate for the text draw area based on a 640x480 "canvas" (irrespective of screen resolution). If you plan on using TextDrawAlignment with alignment 3 (right), the x,y coordinate is the top right coordinate for the text draw.


Note: This function merely CREATES the textdraw, you must use TextDrawShowForPlayer to show it.


Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.


Personal tools