GetScreenSize

From Onset Developer Wiki
Revision as of 10:52, 21 November 2019 by 28days (talk | contribs)
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

Pak

Game

Colors

Miscellaneous

Time

Player

Camera

Waypoints

Fireworks

Packages

Chat

HUDs

Post-processing

GUI

Ocean

Mouse

Sky / Environment

Network

NPC

Objects

Events

Pickup

Door

Text3D

Sound

Text

Timer

Vehicles

Web UI

Key