Player::setCanAttackFriendly
Setting ped to true allows the ped to shoot 'friendlies'.
p2 set to true when toggle is also true seams to make peds permanently unable to aim at, even if you set p2 back to false.
p1 = false & p2 = false for unable to aim at.
p1 = true & p2 = false for able to aim at.
Syntax
player.setCanAttackFriendly(toggle, p2);
Required Arguments
- toggle: Boolean
- p2: Boolean
Return value
- Undefined
Example
// todo