Scripting/Squirrel/Functions/Textdraw.SetRelativeForAll
		
		
		
		Jump to navigation
		Jump to search
		
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 and CreateTextdraw were used in this example. More info about them in the corresponding pages.