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

# npc.modelreadsync

```lua
npc.modelreadsync(model)
```

|                         |                                                   |
| ----------------------- | ------------------------------------------------- |
| id                      | `0x00C0`                                          |
| arguments               | 1: Int                                            |
| in NPC Kit              | yes                                               |
| measured from a kit NPC | waits: holds the script until its condition holds |
| vanilla scripts         | 4531 calls in 699 of 1114 scripts                 |

## What it does

Holds the script until a model asked for with [modelread](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/modelread.md) is loaded.

## Arguments

### `model` (Int)

`0x03000000 + n`, the same entry as the `modelread`.

## Timing

Waits until the model is ready.

## In NPC Kit

**Not for kit NPCs**, like `modelread`: a kit NPC has no model list. `bindp2_d4` already waits for its model.

## Used with

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

## Example

```lua
init = function()
    npc.bindp2_d4(0x006E0019, 4, 3);   -- the kit's modelread + modelreadsync + bindp2
    npc.stdmotionread(16);
    npc.stdmotionreadsync();
    npc.stdmotionplay_2c2(0x01000000, 0);
end,
```
