M MY Multiplayer: Wiki
Side
Kind

engineGetModelTxds

Client

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

table engineGetModelTxds(string|element model)

Parameters

NameTypeDescription
modelstring|elementThe 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

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

See also