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

# npc.show\_38

```lua
npc.show_38(state)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x0038`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 5739 calls in 251 of 1114 scripts |

## What it does

[show](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/show.md) (`1`) or [hide](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/hide.md) (`0`) with an argument: the same switch.

## Arguments

### `state` (Int)

`1` shown, `0` hidden. Vanilla: `1` 3,336 times, `0` 2,403.

## Timing

Returns at once.

## In NPC Kit

Vanilla NPCs hide around a map's scene with `hidecomplete(); show_38(0);` and come back with `clearhidecomplete(); show_38(1);`. The kit hides its NPCs during scenes by itself.

## Used with

* [hidecomplete](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/hidecomplete.md) / [clearhidecomplete](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/clearhidecomplete.md).

## Example

The vanilla on/off form: `show_38(0)` hides the NPC, `show_38(1)` brings it back.

```lua
vanish = function()
    npc.rgbatrans(1, 1, 1, 0, 30);   -- fade out first
    npc.wait(30);
    npc.show_38(0);
    npc.hideshadow();
end,
appear = function()
    npc.rgbatrans(1, 1, 1, 1, 0);
    npc.show_38(1);
    npc.showshadow();
end,
```

## Pitfalls

* The shadow has its own switch: `showshadow` / `hideshadow`.
