OnNpcTarget hook not working
I want to ban the NPC from attacking certain players. OnNpcPlayerTarget(), OnNpcTarget and CanNpcAttack() are not called. I tried to make sure that CanNetworkTo() always returns false, but it didn't work either. Animals and scientists attack the player as usual.

What can I do to make the animals and scientists ignore the player?

It's pretty stupid when a player is in a vanish mod, and then the wolves run after him and the scientists shoot him.
Hey!
Some hooks including this one are disabled for some time, look update history on Games - Rust page
In response to madezhik ():
I want to ban the NPC from attacking certain players. OnNpcPlayerTarget(), OnNpcTarget and CanNpcAtt...
CanNetworkTo works only with actual connected players I guess, server logic (including AI) works behind that hook.
Thank you very much!