warning Not Translated
This page has not been translated into the language that your browser requested. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
TextDrawHideForPlayer
Description
Hides a textdraw for a specific player.
| Name | Description |
|---|---|
| playerid | The ID of the player that the textdraw should be hidden for |
| text | The ID of the textdraw to hide |
Returns
This function does not return any specific values.
Examples
new Text: gMyTextdraw;
public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate( ... );
return 1;
}
public OnGameModeExit()
{
TextDrawDestroy(gMyTextdraw);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, gMyTextdraw);
return 1;
}
public OnPlayerDeath(playerid, reason)
{
TextDrawHideForPlayer(playerid, gMyTextdraw);
return 1;
}
Related Functions
- TextDrawHideForAll: Hide a textdraw for all players.
- TextDrawShowForPlayer: Show a textdraw for a certain player.
- TextDrawShowForAll: Show a textdraw for all players.