How to replace missing texture and errors?

How would I go about replacing the default textures and errors using LUA. Without replacing the error and missing texture… texture.

Is this even possible?

Why would you do that?
I don’t think that’s possible. In LUA, anyway.

I think I have a way now