# engineGetModelTxds (Client)

> Lists the txds a model takes its textures from, in the order it searches them.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Textures
- **URL**: https://wiki.mymp.gg/en/engineGetModelTxds

## Syntax

```lua
table engineGetModelTxds(string|element model)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `model` | `string\|element` | The model's name, or a `model` element from `engineCreateModel`. |

## Returns

A list of txd names: first the ones added with `engineSetModelTxd` (and by packs), then the model's own. Empty if the model is not known yet. Raises an error if no model has that name.

## Example

```lua
for _, txd in ipairs(engineGetModelTxds("infernus")) do
    print(txd, #engineGetTxdTextures(txd))
end
```

## See also

- [engineSetModelTxd (Client)](https://wiki.mymp.gg/en/engineSetModelTxd.md): Puts a txd in front of a model's own, so the model finds its textures there first and falls back to its own for the rest.
- [engineGetTxdTextures (Client)](https://wiki.mymp.gg/en/engineGetTxdTextures.md): Lists the names of the textures a txd gives, links included.
- [engineGetModels (Client)](https://wiki.mymp.gg/en/engineGetModels.md): Lists the models this client knows, with where each comes from.
