PlayerTextDrawBackgroundColor

warning

This feature (player-textdraws) was added in SA-MP 0.3e and will not work in earlier versions!

Description

Adjust the background color of a player-textdraw.

NameDescription
playeridThe ID of the player whose player-textdraw to set the background color of
textThe ID of the player-textdraw to set the background color of
colorThe color that the textdraw should be set to.

Returns

Note

If PlayerTextDrawSetOutline is used with size > 0, the outline color will match the color used in PlayerTextDrawBackgroundColor. Changing the value of color seems to alter the color used in PlayerTextDrawColor

Examples

new PlayerText:gMyTextdraw;
public OnPlayerConnect(playerid)
{
gMyTextdraw = CreatePlayerTextDraw(playerid, 320.0, 425.0, "This is an example textdraw");
PlayerTextDrawUseBox(playerid, gMyTextdraw, 1);
PlayerTextDrawBackgroundColor(playerid, gMyTextdraw, 0xFFFFFFFF); // Set the background color of gMyTextdraw to white
return 1;
}

Notes

tip

If PlayerTextDrawSetOutline is used with size > 0, the outline color will match the color used in PlayerTextDrawBackgroundColor. Changing the value of color seems to alter the color used in PlayerTextDrawColor

Related Functions