Scripting/Squirrel/Client Functions/GUI::GetScreenSize

From Vice City Multiplayer
Revision as of 15:47, 16 July 2017 by MatheuS (talk | contribs) (Created page with "== Syntax == <pre>void GUI::GetScreenSize()</pre> == Arguments == * '''integer''' '''position''' This is the number of player screen size, must be a integer. == Example ==...")
(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

Syntax

void GUI::GetScreenSize()

Arguments

  • integer position This is the number of player screen size, must be a integer.

Example

sX <- GUI.GetScreenSize().X;
sY <- GUI.GetScreenSize().Y;

function Script::ScriptLoad()
{
     Console.Print("[#FFFFFF]Your resolution is: " + sX + "x" + sY + ".");
}

Notes

none