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

# npc.setmapmodelstatus

```lua
npc.setmapmodelstatus(status)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x03EE`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 8912 calls in 937 of 1114 scripts |

## What it does

Sets the map-model status. Vanilla sets it back to `1` at the end of every talk.

## Arguments

### `status` (Int)

`1` in all but 13 of 8,912 vanilla calls. What `0` changes on screen is not confirmed here.

## Timing

Returns at once.

## In NPC Kit

`setmapmodelstatus(1)` is in `talkClose`. Keep the `1`.

## Used with

* [setmaphighmodeldepth](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setmaphighmodeldepth.md)`(-1)` just before, in `talkClose`.

## Example

```lua
local function talkClose()
    -- ...
    npc.setmaphighmodeldepth(-1);
    npc.setmapmodelstatus(1);
    npc.setstatuserrordispdenystatus(0);
    -- ...
end
```
