SetPedCanLosePropsOnDamage — FiveM Natives
0xE861D0B05C7662B8 · PED · all
It makes the ped lose (or not lose) their props (like glasses or helmets/hat) when someone punches or pushes the ped. This is probably what's being used in GTA:O to keep players from knocking other player's hats/glasses off when in combat.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The target ped |
| loseProps | BOOL | true = allow props to fall off, false = don't let props fall off |
| p2 | int | purpose unknown, usually 0 |
Returns
void