[LUA Scripting Question] Making the DModelPanel static? (Not rotating)

Hello there, I have a question: Is there any way to make the model of the DModelPanel not rotating?

You’ll have to override DModelPanel:LayoutEntity( Entity )

Overwrite LayoutEntity with an empty function

I found the function but, where I have to put it?

modelPanel.LayoutEntity = function() end

Thanks, it helped.