> 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/nui/create-nui.md).

# Create Nui

Creates an embedded browser window with the given name loading the URL. Width and height default to the display size (1920x1080 fallback). Returns true on success.

## **Syntax**

```lua
refresh.Nui.CreateNui(name, url [, w [, h]]) -> Boolean
```

## **Return**

{% hint style="success" %}
Boolean (success)
{% endhint %}

## Usage Example

```lua
refresh.Nui.CreateNui("menu", "https://example.com/ui.html", 800, 600)
```
