Scripting/Squirrel/Functions/Textdraw.SetRelativeForAll: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will set a relative position of a TextDraw for all players. == Syntax == <pre>TextDraw.SetRelativeForAll( toggle )</pre> == Arguments == * ''bool'' '''toggle...")
 
No edit summary
Line 24: Line 24:
=== Notes ===
=== Notes ===


Call [[onScriptLoad]] were used in this example. More info about them in the corresponding pages.
Call [[onScriptLoad]] and [[Scripting/Squirrel/Functions/CreateTextdraw|CreateTextdraw]] were used in this example. More info about them in the corresponding pages.


== Related Functions ==
== Related Functions ==


{{Scripting/Squirrel/Functions/Textdraw_Functions}}
{{Scripting/Squirrel/Functions/Textdraw_Functions}}

Revision as of 10:59, 12 March 2016

This function will set a relative position of a TextDraw for all players.

Syntax

TextDraw.SetRelativeForAll( toggle )

Arguments

  • bool toggle - true or false.

Example

function onScriptLoad()
{
		local x = 0; // The x coodinate for the textdraw on the screen.
		local y = 0; // The y coodinate for the textdraw on the screen.
		local Color = 0xFFFFFFFF; // Color white
		local TextDraw = CreateTextdraw( "Text, x, y, Color);
		TextDraw.SetRelativeForAll( true ); // Sets the position relative to all.

}

Notes

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

Related Functions