The open.mp logo
Home
FAQ
Forums
Servers
Partners
Docs
Blog

note Help Needed

This wiki is the result of an ongoing community effort — thank you all for helping!

If you want to provide changes to this page then please click here.

TextDrawHideForPlayer

Description

Hides a textdraw for a specific player.

NameDescription
playeridThe ID of the player that the textdraw should be hidden for
textThe 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.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub