NPC relationship

Hi!
I would like to know if it is possible to ensure that when a player takes his LSPD On-Duty, the police ignore him while the off-duty player can be shot.
I’m a big AI fan so I would like a script like this thank you in advance :slight_smile:

Reidjod

What do you mean by LSPD? Are you asking about FiveM or RedM?