Scripting/Squirrel/Functions/Textdraw.ShowForPlayer

From Vice City Multiplayer
Revision as of 11:07, 12 March 2016 by VK.Angel.OfDeath (talk | contribs) (Created page with "This function will display the textdraw on the entered player's screen. == Syntax == <pre>Textdraw.ShowForPlayer( player )</pre> == Arguments == * ''Player'' '''player'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function will display the textdraw on the entered player's screen.

Syntax

Textdraw.ShowForPlayer( player )

Arguments

  • Player player - The player you want to display the textdraw to.

Example

function onPlayerCommand( player, cmd, text )
{
	if ( cmd == "textforplayer" )
	{
		local Textdraw = CreateTextdraw( "Text", x, y, Color);
		Textdraw.ShowForPlayer(player);

	}
}

Notes

Call onPlayerCommand and CreateTextdraw were used in this example. More info about them in the corresponding pages.

Related Functions