Extremely simple script. With this, you can fully heal yourself by leaning against any wall (that is, being in cover).
Why the hell do you code something as simple as this you're the cancer thats killing modding
As this is a really simple script, the sourcecode is in the download. I hope anyone getting started in scripting for GTAV finds it useful.
The script its less that 30 lines long and can help beginners understand how to deal with in-real-time conditions, such as "when the player is in cover".
The script has been coded in Visual Studio Community 2015.
.NET Framework 4.5.2
Visual C++ 2015
How to install
Extract HealByLeaningOnWall.dll into /Grand Theft Auto V/scripts/.
Don't put the sourcecode file on /Grand Theft Auto V/scripts/ or the game will load it too, resulting in the script being ran twice. However, you if you only place the sourcecode in that scripts folder, you can edit it freely and the changes done to the file will be loaded next time ScriptHookVDotNet is reloaded, or you load a save. Still, I suggest you use Visual Studio to edit scripts.
Bist du der Autor dieser Modifications? Falls jemand deine Mod geklaut hat, kannst du diesen Mod melden und einen Antrag auf Löschung stellen.