engineGetVisibleTextureNames | Multi Theft Auto: Wiki Skip to content

engineGetVisibleTextureNames

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 list of the world textures which are being used to draw the current scene.

OOP Syntax Help! I don't understand this!

  • Method: Engine.getVisibleTextureNames(...)

Syntax

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

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

  • nameFilter (default: "*"): Only include textures that match the wildcard string.
  • modelId (default: ""): MISSING_PARAM_DESC

Returns

  • table: value

Returns a table of texture names.

Code Examples

shared

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

Engine Functions
Engine Elements