engineGetModelTextureNames | Multi Theft Auto: Wiki Skip to content

engineGetModelTextureNames

Client-side
Server-side
Shared

This function returns a table of the world textures which are applied to the specified model.

OOP Syntax Help! I don't understand this!

  • Method:Engine.getModelTextureNames(...)

Syntax

table|false engineGetModelTextureNames ( ​string modelIdOrName )
Required Arguments
  • modelIdOrName: You can either use the model id or the model name.

Returns

  • table|false: model texture names

Returns a table if this function succeeds, false if it fails for some reason.

Code Examples

client

This example will output the texture names applied to the Comet.

for _, name in ipairs(engineGetModelTextureNames("480")) do
outputConsole(name)
end

See Also

Engine Functions