GetScreenSize

From Onset Developer Wiki
Revision as of 20:42, 30 August 2020 by BlueMountains (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetScreenSize

Type: Function
Context: Client
Introduced: v1.0

Description

Get the client's screen size

Syntax

GetScreenSize()

Parameters

  • This function has no parameters.

Return Value

  • Get the client's screen size

Example

AddEvent("OnRenderHUD", function()
	local ScreenX, ScreenY = GetScreenSize()
	AddPlayerChat("Your screen size: "..ScreenX..", "..ScreenY)
end)

See also