Find Map Texture/Material name

Hi guys,

I need to find the name of map textures/materials in-game. Is there a way to find the name of the texture/material that I’m looking at using lua?

Thanks for the help.

Sam