> For the complete documentation index, see [llms.txt](https://xeavin.gitbook.io/the-insurgents-handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeavin.gitbook.io/the-insurgents-handbook/scripts/vm-call-targets/mes-close-sync.md).

# Mes Close Sync

### Signature

```c
void mesclosesync(int windowId); //id:0x049d
```

### Description

Used after the [Mes Close](/the-insurgents-handbook/scripts/vm-call-targets/mes-close.md) function to stop the execution of the following functions until the window its close request is completed.

### Arguments

#### Window Identifier

The window the dialogue will be displayed in.

There are a total of 8 windows (0 -> 7) that can be used to simultaneously display several dialogues, shapes (textures), etc. at the same time.

If a value of `-1` is passed, it will be changed to `0`.
