TextDrawTextSize
From SA-MP Wiki
TextDrawTextSize
When used with TextDrawUseBox it changes the size of the box.
(Text:text, Float:x, Float:y)
| text | The TextDraw to change. |
| x | The x size following the same 640x480 grid as TextDrawCreate. |
| y | The y size following the same 640x480 grid as TextDrawCreate. |
Note: When used with TextDrawAlignment of alignment 3 (right), the x and y are the coordinates of the left most corner of the box. For alignment 2 (center) the x and y values need to inverted (switch the two) and the x value is the overall width of the box. For all other alignments the x and y coordinates are for the right most corner of the box.
This function does not return a specific value.
MyTextDraw = TextDrawCreate(100.0, 33.0,"Example TextDraw"); TextDrawTextSize(MyTextDraw, 2.0, 3.6);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- TextDrawCreate: Create a textdraw.
- TextDrawDestroy: Destroy a textdraw.
- TextDrawColor: Set the color of the text in a textdraw.
- TextDrawBoxColor: Set the color of the box in a textdraw.
- TextDrawBackgroundColor: Set the background color of a textdraw.
- TextDrawAlignment: Set the alignment of a textdraw.
- TextDrawFont: Set the font of a textdraw.
- TextDrawLetterSize: Set the letter size of the text in a textdraw.
- TextDrawSetOutline: Choose whether the text has an outline.
- TextDrawSetShadow: Toggle shadows on a textdraw.
- TextDrawSetProportional: Scale the text spacing in a textdraw to a proportional ratio.
- TextDrawUseBox: Toggle if the textdraw has a box or not.
- TextDrawSetString: Set the text in an existing textdraw.
- TextDrawShowForPlayer: Show a textdraw for a certain player.
- TextDrawHideForPlayer: Hide a textdraw for a certain player.
- TextDrawShowForAll: Show a textdraw for all players.
- TextDrawHideForAll: Hide a textdraw for all players.
