Hello hello,

This is the Keep Glasses and Hats (Open IV) Mod, which means no matter how much damage the player or ped takes*, their hats or glasses will not fall off (similar to players in GTA Online servers).

--- INSTALLATION ---
Please use OpenIV.

Drag and drop "damages.meta" into "update.rpf\common\data\action" (I've set up the folders accordingly).

--- HOW DOES THIS WORK? ---
Within damages.meta are damage reaction attributes. In vanilla GTA V, there's "DRA_KNOCK_OFF_PROPS", which is what allows props--mainly just hats and glasses--to be knocked off when damage is taken.

This modification to damages.meta removes that attribute. This means that no form of damage will knock off props. This applies for the player and peds.

*However, in testing, it looks like hats and glasses can rarely fall off when damaged--it might be a form of damage not specified in damages.meta.

--- ATTRIBUTION ---
This mod is entirely based on a mod by H5tred on rage.mp. You can find it here: https://rage.mp/files/file/441-disabling-propshatsglasses-knock-off/

--- NOTES ---
Because I'm a fool and I don't think damages.meta is modified by other mods, the OpenIV package replaces the vanilla damages.meta rather than modifying the attributes. Given I don't think new damage will be added, I think this mod will survive some GTA V versions.

--- UNINSTALL ---
There's a backup damages.meta that's un-modified. You can replace the modded one with that to get back the normal hats falling off.


