GetScreenSize: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 19: Line 19:


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:ClientFunctions}}
__EDIT_ME__

Revision as of 05:18, 4 December 2019

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

__EDIT_ME__