From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function returns a list of the world textures which are being used to draw the current scene.


table engineGetVisibleTextureNames ( [ string nameFilter = "*", string modelId = "" ] )

OOP Syntax Help! I don't understand this!

Method: Engine.getVisibleTextureNames(...)

Optional Arguments

  • nameFilter: Only include textures that match the wildcard string.
  • modelId : Only include textures that are used by the model id (or model name)


Returns a table of texture names.


This example will output the names of all the visible textures that start with 'a'

for _,name in ipairs( engineGetVisibleTextureNames ( "a*" ) ) do
    outputConsole( name )

See Also