SetCanAttackFriendly — FiveM Natives
0xB3B1CB349FF9C75D · PED · all
`` 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. ``
Parameters
| Name | Type |
|---|---|
| ped | Ped |
| toggle | BOOL |
| p2 | BOOL |
Returns
void