Scripting/Squirrel/Functions/Textdraw.SetRelativeForAll

From Vice City Multiplayer
Revision as of 10:18, 12 March 2016 by VK.Angel.OfDeath (talk | contribs) (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...")
(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 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 were used in this example. More info about them in the corresponding pages.

Related Functions