open.mp | TextDrawShowForPlayer
  • Home
  • FAQ
  • Forum
  • Servers
  • Docs
  • Blog
  • Login
  • Englishاللغة العربيةar-TNবাংলাbosanski jezikDeutschΕλληνικάEspañoleestiفارسیFrançaisHrvatskimagyarBahasa IndonesiaItaliano日本語ქართულიlietuvių kalbaNederlandsNorskjęzyk polskiPortuguêsRomânăРусскийslovenski jezikсрпски језикไทยWikang TagalogTürkçeУкраїнськаاردوTiếng Việt简体中文繁體中文
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.

TextDrawShowForPlayer

Description

Shows a textdraw for a specific player.

NameDescription
playeridThe ID of the player to show the textdraw for.
textThe ID of the textdraw to show. Returned by TextDrawCreate.

Returns

1: The function executed successfully.

0: The function failed to execute. This means either the player and/or textdraw specified does not exist.

Examples

public OnPlayerConnect(playerid)
{
    new Text: textId = TextDrawCreate(100.0, 100.0, "Welcome!");
    TextDrawShowForPlayer(playerid, textId);
}

Notes

tip

If only a single player will see a textdraw, it might be wise to use player-textdraws instead. This is also useful for textdraws that need to show information specific for an individual player.

Related Functions

  • TextDrawHideForPlayer: Hide a textdraw for a certain player.
  • TextDrawShowForAll: Show a textdraw for all players.
  • TextDrawHideForAll: Hide a textdraw for all players.

Community

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

More

  • SA-MP
  • Blog
  • GitHub