Detective could hang bodies ?

Hello,
on TTT traitor can usually hang bodies, I’d like to know if it’s possible for detective too?
I know there is a cvar for everyone can hang bodies (ttt_pinning_innocents) but I’d like only traitor or detective.
Any ideas?

Thanks for help.

Look into how Ts can hang bodies and implement the same method for dets

It’s possible, I coded this functionality for someone that wanted it. It’s not difficult, but, what have you tried so far?