# getScreenSize (Client)

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

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Screen drawing
- **URL**: https://wiki.mymp.gg/en/getScreenSize

## Syntax

```lua
float, float getScreenSize()
```

## Returns

The width and the height in pixels.

## Example

```lua
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

- [dxDrawText (Client)](https://wiki.mymp.gg/en/dxDrawText.md): Draws text on the screen for one frame, inside a box.
- [dxDrawRectangle (Client)](https://wiki.mymp.gg/en/dxDrawRectangle.md): Draws a filled rectangle on the screen for one frame.
- [getCursorPosition (Client)](https://wiki.mymp.gg/en/getCursorPosition.md): Reads where the cursor is on the screen and the world point it points at.
