EngineGetVisibleTextureNames

From Multi Theft Auto: Wiki
Revision as of 20:55, 21 July 2011 by Ccw (talk | contribs) (Created page with "{{Client function}} __NOTOC__ {{New feature|3.0110|1.1| Only available in 1.1 }} This function returns a list of names for the world textures that are being used to draw the curr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Only available in 1.1 This function returns a list of names for the world textures that are being used to draw the current scene.

Syntax

bool engineGetVisibleTextureNames ( [ string nameFilter = "*", string modelFilter = "" ] )

Optional Arguments

  • nameFilter: Excludes textures from the list that do not match the wildcard string.
  • modelFilter: Excludes textures from the list that do not appear in the named model. This can be a model name such as "des_ranch" or a model id number. If not set, all textures are included.

Returns

Returns a table of texture names.

Example

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

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

See Also