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

# npc.settrapshowstatus

```lua
npc.settrapshowstatus(state)
```

|                         |                                    |
| ----------------------- | ---------------------------------- |
| id                      | `0x0547`                           |
| arguments               | 1: Int                             |
| in NPC Kit              | yes                                |
| measured from a kit NPC | returns                            |
| vanilla scripts         | 17280 calls in 989 of 1114 scripts |

## What it does

Shows (`1`) or hides (`0`) the map's trap markers. Vanilla talks hide them while the window is up and show them again after.

## Arguments

### `state` (Int)

`1` shown, `0` hidden. Vanilla: `1` 8,907 times, `0` 8,373, almost all in talks.

## Timing

Returns at once. With a full-screen menu open it does nothing.

## In NPC Kit

Part of the talk framing: `settrapshowstatus(0)` in `talkOpen`, `(1)` in `talkClose` (`references/talks.md`).

## Used with

* [sethpmenu](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/sethpmenu.md), [ucoff](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/ucoff.md) / [ucon](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/ucon.md): the rest of the talk framing.

## Example

```lua
local function talkOpen()
    npc.sethpmenu(0);
    npc.ucoff();
    npc.settrapshowstatus(0);    -- trap markers hidden while the window is up
    -- ...
end

local function talkClose()
    -- ...
    npc.settrapshowstatus(1);    -- back after
    npc.stdmotionplay_2c2(0x01000000, 20);
end
```
