Making friendly and hostiles NPCs

Hi everyone, I wanted to know how can I make one of my playermodels, appear in the NPCs tab and to be able to make one friendly and another hostile.
I’ve been told it has nothing to do with the .qc file but with .lua instead, is there a code? If so may I have it?
Thanks in advance =)

I don’t think you can do this with player models. I think you’ll have to recompile the model with rebel animations for friendly NPC and with combine animations for enemy NPC.

And to make it show in the NPC’s tab? Do you know how to do that?

Just look at existing addons that do that.