<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.vc-mp.org/index.php?action=history&amp;feed=atom&amp;title=Scripting%2FSquirrel%2FFunctions%2FTextdraw.HideFromPlayer</id>
	<title>Scripting/Squirrel/Functions/Textdraw.HideFromPlayer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.vc-mp.org/index.php?action=history&amp;feed=atom&amp;title=Scripting%2FSquirrel%2FFunctions%2FTextdraw.HideFromPlayer"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Textdraw.HideFromPlayer&amp;action=history"/>
	<updated>2026-04-09T22:50:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Textdraw.HideFromPlayer&amp;diff=19068&amp;oldid=prev</id>
		<title>VK.Angel.OfDeath: Created page with &quot;This function will hide the textdraw for a specific player.  == Syntax ==  &lt;pre&gt;Textdraw.HideFromPlayer(player);&lt;/pre&gt;  == Arguments ==  * &#039;&#039;Player&#039;&#039; &#039;&#039;&#039;player&#039;&#039;&#039; - The player...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Textdraw.HideFromPlayer&amp;diff=19068&amp;oldid=prev"/>
		<updated>2016-03-12T11:27:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This function will hide the textdraw for a specific player.  == Syntax ==  &amp;lt;pre&amp;gt;Textdraw.HideFromPlayer(player);&amp;lt;/pre&amp;gt;  == Arguments ==  * &amp;#039;&amp;#039;Player&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;player&amp;#039;&amp;#039;&amp;#039; - The player...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This function will hide the textdraw for a specific player.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Textdraw.HideFromPlayer(player);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;Player&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;player&amp;#039;&amp;#039;&amp;#039; - The player you want to hide the textdraw from.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
		local x = 100; // The x coodinate for the textdraw on the screen.&lt;br /&gt;
		local y = 100; // The y coodinate for the textdraw on the screen.&lt;br /&gt;
		local Color; // The color&lt;br /&gt;
		switch(Random(1,5)) // Selects a random color&lt;br /&gt;
		{&lt;br /&gt;
			case 1: &lt;br /&gt;
				Color = 0xFFFFFFFF; // Color white&lt;br /&gt;
				break;&lt;br /&gt;
			case 2:&lt;br /&gt;
				Color = 0xFFFF0000; // Color red&lt;br /&gt;
				break;&lt;br /&gt;
			case 3:&lt;br /&gt;
				Color = 0xFF00FF00; // Color green&lt;br /&gt;
				break;&lt;br /&gt;
			case 4:&lt;br /&gt;
				Color = 0xFFFFFF00; // Color yellow&lt;br /&gt;
				break;&lt;br /&gt;
			case 5:&lt;br /&gt;
				Color = 0xFF00BFFF; // Color blue&lt;br /&gt;
				break;&lt;br /&gt;
	&lt;br /&gt;
		}&lt;br /&gt;
		Textdraw &amp;lt;- CreateTextdraw( &amp;quot;Text here&amp;quot;, x, y, Color); // Creates a textdraw with a random color&lt;br /&gt;
		Textdraw.ShowForAll(); // Shows the textdraw for all players.&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
	if ( cmd == &amp;quot;hidetext&amp;quot; ) // Command for hiding the textdraw&lt;br /&gt;
	{&lt;br /&gt;
		Textdraw.HideFromPlayer(player); // Hides the textdraw for the player&lt;br /&gt;
&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
[[onScriptLoad]], [[onPlayerCommand]], [[Scripting/Squirrel/Functions/Textdraw.ShowForAll|Textdraw.ShowForAll]] and [[Scripting/Squirrel/Functions/CreateTextdraw|CreateTextdraw]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Textdraw_Functions}}&lt;/div&gt;</summary>
		<author><name>VK.Angel.OfDeath</name></author>
	</entry>
</feed>