Relationship Groups for the Ambient Gang spawns

Hi there, I’m hoping this is a stupid question with an easy answer.

NPCs that I spawn are getting blasted by the local gangs as soon as they open fire, causing a huge firefight.

I have tried to make their relationship group friendly to all ambient gangs, but it doesn’t work. Ideally, if the player gets attacked by these guys, everyone should be on their side, not mine

int hatesPlayerGroup = Function.Call<int>(Hash.ADD_RELATIONSHIP_GROUP, "warrantGang");
            
            // Set up relationship groups
            Function.Call(Hash.SET_PED_RELATIONSHIP_GROUP_HASH, suspect.Handle, hatesPlayerGroup);
            
            // Set the relationship between "HATES_PLAYER" and Ambient Gangs to be friendly
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, hatesPlayerGroup, Game.GenerateHash("AMBIENT_GANG_LOST"));
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, Game.GenerateHash("AMBIENT_GANG_LOST"), hatesPlayerGroup);
            
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, hatesPlayerGroup, Game.GenerateHash("AMBIENT_GANG_BALLAS"));
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, Game.GenerateHash("AMBIENT_GANG_BALLAS"), hatesPlayerGroup);
            
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, hatesPlayerGroup, Game.GenerateHash("AMBIENT_GANG_FAMILY"));
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, Game.GenerateHash("AMBIENT_GANG_FAMILY"), hatesPlayerGroup);
            
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, hatesPlayerGroup, Game.GenerateHash("AMBIENT_GANG_MARABUNTE"));
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, Game.GenerateHash("AMBIENT_GANG_MARABUNTE"), hatesPlayerGroup);
            
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, hatesPlayerGroup, Game.GenerateHash("AMBIENT_GANG_MEXICAN"));
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, Game.GenerateHash("AMBIENT_GANG_MEXICAN"), hatesPlayerGroup);
            
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, hatesPlayerGroup, Game.GenerateHash("AMBIENT_GANG_SALVA"));
            Function.Call(Hash.SET_RELATIONSHIP_BETWEEN_GROUPS, (int)Relationship.Like, Game.GenerateHash("AMBIENT_GANG_SALVA"), hatesPlayerGroup);