Change player model material?

Basically, I want to change the player model material to one of the invisible ones upon use of a TTT swep. Is that possible?

EDIT: I found this.
How do I get the player model as a variable in LUA though?

The player model’s material can be changed simply by setting the material of the player entity.


ply:SetMaterial('path/to/material')

and this works with TTT fine?

As long as the model only uses ONE texture, it will work fine on any gamemode.