> For the complete documentation index, see [llms.txt](https://fehdead.gitbook.io/npc-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/sethpmenu.md).

# npc.sethpmenu

```lua
npc.sethpmenu(visibility)
```

|                         |                                    |
| ----------------------- | ---------------------------------- |
| id                      | `0x008E`                           |
| arguments               | 1: Int                             |
| in NPC Kit              | yes                                |
| measured from a kit NPC | returns                            |
| vanilla scripts         | 17663 calls in 865 of 1114 scripts |

## What it does

Shows (`1`) or hides (`0`) the field HUD: the mini-map and the party's HP and MP.

## Arguments

### `visibility` (Int)

`1` shown, `0` hidden. Vanilla: `1` 9,640 times, `0` 8,023. Every talk hides it before its window and shows it after.

## Timing

Returns at once; the HUD changes on the next frames.

## In NPC Kit

`sethpmenu(0)` first in `talkOpen`, `sethpmenu(1)` in `talkClose`. Left at `0`, the player finishes the talk with no HUD.

## Used with

* [ucoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/ucoff.md) / [ucon](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/ucon.md), [settrapshowstatus](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/settrapshowstatus.md): the talk framing.
* A scene: hidden through the whole scene, shown in its `close`.

## Example

First in `talkOpen`, back in `talkClose`.

```lua
local function talkOpen()
    npc.sethpmenu(0);
    npc.ucoff();
    npc.settrapshowstatus(0);
    -- ...
end

local function talkClose()
    -- ...
    npc.ucon();
    npc.sethpmenu(1);
    -- ...
end
```
