> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/ui/world-to-screen.md).

# World To Screen

Projects world coordinates to screen space. Returns a table with integer `x`, `y`, and boolean `onScreen`.

## **Syntax**

```lua
refresh.UI.WorldToScreen(x, y, z) -> Table
```

## **Return**

{% hint style="success" %}
Table (x, y, onScreen)
{% endhint %}

## Usage Example

```lua
local s = refresh.UI.WorldToScreen(100.0, 100.0, 30.0)
if s.onScreen then
    print(s.x, s.y)
end
```
