PlayerTextDrawSetShadow

From SA-MP Wiki

Jump to: navigation, search


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


Description:

Adds a shadow to the bottom-right side of the text in a player-textdraw. The shadow font matches the text font.


Parameters:
(playerid, PlayerText:text, size)
playeridThe ID of the player whose player-textdraw to set the shadow size of.
textThe ID of the player-textdraw to change the shadow of
sizeThe size of the shadow. 0 will hide the shadow.


Return Values:

  • 1: The function executed successfully.
  • 0: The function failed to execute. This means the player-textdraw doesn't exist.


Image:32px-Ambox_warning_orange.png

Note

The shadow can be cut by the box area if the size is set too big for the area.


Example Usage:

new Text:MyTextDraw = CreatePlayerTextDraw(playerid, 100.0, 33.0, "Example Text");
PlayerTextDrawSetShadow(playerid, MyTextDraw, 1);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Personal tools
Navigation
Toolbox