M MY Multiplayer: Wiki
Side
Kind

getScreenSize

Client

Returns the size of the game's screen in pixels.

float, float getScreenSize()

Returns

The width and the height in pixels.

Example

local sx, sy = getScreenSize()

addEventHandler("onClientRender", root, function()
    dxDrawText("v1.0", 0, 0, sx - 10, sy - 10, tocolor(255, 255, 255, 120), 1, "default", "right", "bottom")
end)

See also