Ugrás a fő tartalomhoz

TextDrawSetOutline

Description

Sets the thickness of a textdraw's text's outline. TextDrawBackgroundColor can be used to change the color.

NameDescription
Text:textidThe ID of the text draw to set the outline thickness of.
outlineSizeThe thickness of the outline, as an integer. 0 for no outline.

Returns

This function does not return any specific values.

Examples

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawSetOutline(gMyTextdraw, 1);
return 1;
}

Notes

tanács

If you want to change the outline of a textdraw that is already shown, you don't have to recreate it. Simply use TextDrawShowForPlayer/TextDrawShowForAll after modifying the textdraw and the change will be visible.