engineGetModelTextureNames | Multi Theft Auto: Wiki Skip to content

engineGetModelTextureNames

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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 engineGetModelTextureNames ( [ string modelId = "" ] )
Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.

  • modelId (default: ""): MISSING_PARAM_DESC

Returns

  • table: value

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

Code Examples

shared

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
Engine Elements