- Documentation
- Client functions
- engineGetVisibleTextureNames
Function
engineGetVisibleTextureNames
Returns the names of San Andreas textures currently loaded in the game (around the player), with an optional * and ? filter. Helps find a texture name to replace: stand next to an object and print the list. The second argument (model) is ignored.
Syntax
table engineGetVisibleTextureNames([string nameFilter = "*", int modelId = nil])Arguments
nameFilterstring, optional = "*"- Name pattern.
modelIdint, optional = nil- Ignored.Different type in MTA:SA: string modelIdOrName = ""
Differences from MTA:SA
- Arguments in a different colour differ from MTA:SA.
In MTA:SA
engineGetVisibleTextureNames(string nameFilter = "*", string modelIdOrName = "")Returns
A table of names (at most 5000).
Example
addCommandHandler("tekstury", function(_, filter)
for _, name in ipairs(engineGetVisibleTextureNames(filter or "*sign*")) do outputConsole(name) end
end)