I'm making new callout plugin, callout on 2 suspects in vehicle, armed passenger, but the passenger not shooting in can against me as expect. It shoot at me only after exit the vehicle.
These are my code (in Process()😞
if (!PursuitCreated)
{
Pursuit = Functions.CreatePursuit();
foreach (Ped suspect in Suspects)
Functions.AddPedToPursuit(Pursuit, suspect);
Functions.SetPursuitIsActiveForPlayer(Pursuit, true);
PursuitCreated = true;
Game.LocalPlayer.Character.RelationshipGroup = "COP";
Game.SetRelationshipBetweenRelationshipGroups("ARMEDSUSPECTS", "COP", Relationship.Hate);
Game.SetRelationshipBetweenRelationshipGroups("COP", "ARMEDSUSPECTS", Relationship.Hate);
NativeFunction.CallByName<uint>("SET_PED_COMBAT_ATTRIBUTES", Suspects[1], 1 ,true);
Suspects[1].Tasks.FightAgainst(Game.LocalPlayer.Character);
}
Suspects[1] is passenger, armed with this command:
Suspects[1].Inventory.GiveNewWeapon("weapon_appistol", 100, true);
Do you have any solution for this? Thanks.