Scripting/Squirrel/Client Events/Script::ScriptLoad: 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
Line 23: Line 23:
== Notes ==
== Notes ==


The functions GUILabel( ), FontFlags, FontSize, FontName were used in this example. GUILabel will add the text, vector and textcolor, FontFlags will add a flag to the text, FontName will add a font style and Fontsize will add the size.
The functions GUILabel( ) will add the text, vector and textcolor. FontFlags will add a flag. FontSize will add the size. FontName will add a font style and Fontsize.

Revision as of 05:35, 26 April 2019

Syntax

Script::ScriptLoad()

Arguments

  • Label is a variable that will be share with each function above

Example

The following example will show up a text in your screen.

function Script::ScriptLoad()
{
       Label <- GUILabel( VectorScreen(_screen.X * 0.70, _screen.Y * 0.93.2 ), Colour( 25, 250, 0 ), "Hello World" );
       Label.FontFlags = GUI_FFLAG_BOLD;
       Label.FontSize = _screen.X * 0.032.0;
       Label.FontName = "Pricedown";
}

Notes

The functions GUILabel( ) will add the text, vector and textcolor. FontFlags will add a flag. FontSize will add the size. FontName will add a font style and Fontsize.