> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nexdevelopment.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Exports

> Client-side exports for controlling NEX HUD from your own scripts.

All exports are **client-side**.

## toggleHud

Shows or hides the whole HUD, including the minimap radar.

```lua theme={null}
-- state: true to show, false to hide.
exports['nex_hud']:toggleHud(state)
```

Useful for cutscenes, photo modes, or death screens:

```lua theme={null}
exports['nex_hud']:toggleHud(false) -- hide during the cutscene
-- ...
exports['nex_hud']:toggleHud(true)  -- bring it back
```

## toggleMap

Shows or hides only the minimap, leaving the rest of the HUD alone.

```lua theme={null}
-- state: true to show, false to hide.
exports['nex_hud']:toggleMap(state)
```

## openSettings

Opens the settings window — the same as `/hudsettings`. Handy if you want to expose it from your own menu.

```lua theme={null}
exports['nex_hud']:openSettings()
```

<Warning>
  The export names follow the resource folder name. If you rename the `nex_hud` folder, call `exports['your_name']:...` instead.
</Warning>
