- Documentation
- Client functions
- guiGetScreenSize
Function
guiGetScreenSize
Returns the screen size in pixels.
Syntax
float guiGetScreenSize()Returns
Width and height.
Example
local sw, sh = guiGetScreenSize()
local win = guiCreateWindow(sw / 2 - 200, sh / 2 - 150, 400, 300, "Środek ekranu", false)