The reference to hats can be easily eliminated by using the native: SetPedCanLosePropsOnDamage - FiveM Natives @ Cfx.re Docs