Note:
Unless you are using this mod for development, or using a mod that requires this, this mod does nothing by itself!
Open-Source 1.0 is here!
1.0 fixes all previous issues such as non-lethal weapons not being tracked with LSPDFR. All damage should now be tracked.
DamageTrackerFramework
DamageTrackerFramework is an RPH Plugin that acts as a framework by providing events to other plugins for when Peds and the Player take damage. Previously, the way you had to check whether a Ped was damaged was very inefficient and inaccurate and would often cause major performance loss.
DamageTrackerFramework attempts to remedy this by getting the data directly from the game's memory and passing it to other plugins, resulting in accurate, reliable, and performant damage tracking with a negligible loss of ~0-1fps, in comparison with other techniques which would often drop anywhere from 20fps to 60fps, while being less accurate or reliable.
Requirements
- RagePluginHook
Installation
- Install DamageTrackerLib.dll to the GTA V directory.
- Install DamageTrackerFramework.dll to the plugins folder.
- DamageTrackerFramework MUST be started with RagePluginHook.
Issues
- Damage from Gas Grenades is not tracked.
The best way to contact me or report any issues is via this discord: https://discord.gg/ulss
You can navigate to the "Varis-Plugins" channel in the "Affiliate Contact" Section near the bottom and make your post tagged with DamageTracker.
Development
Now supports vehicle damage tracking! Let me know if there is any data you'd like me to track specifically in vehicles.
Source Code
This plugin is now open source, documentation and source code can be found here: Variapolis/DamageTrackerFramework (github.com)
NuGet
The library is available as a package on NuGet: https://www.nuget.org/packages/DamageTrackerLib
Example Plugins
An example plugin has been provided and the source code for it can be found here: Variapolis/DamageTrackerExample (github.com)
Redistribution Rules & License
This modification is now under the Eclipse Public License v2.0
- You may redistribute the files with your mod as long as you include the license included with these files in your download.
- If you modify the source code, you must make those modifications open-source.
- I ask you to credit me and link to this mod page as a courtesy.
The Full License can be found within the files.
The Example Plugins are licensed under 0BDL, you are free to modify and redistribute them as you see fit.
Special Thanks
- @Rohit685
- @khorio
- @Echooo
- My Friend Wagner
- PNWParksFan
- LMS
- alexguirre
- Helpers in the LSPDFR Dev Discord
Mods Using DamageTrackerFramework
Edited by Vari
What's New in Version 2.0.0
Released
Changes with 2.0.0
- Added Vehicle Damage Tracking (Special thanks to @ApparentlyRohan and @khorio for a lot of the work.)
Changes with 1.0.3
- Updated version checker to use a more up-to-date and performant system (Special thanks to @khorio for most of the work.)
Changes with 1.0.2:
- Fixed Log being spammed by unknown hashes. They are know logged once and cached.
- Fixed Version not being logged correctly in the version check fails.
Changes with 1.0.1:
- Fixed crash caused by Peds being deleted between ticks after 20-30 minutes of play. (Thanks @DooVan for reporting and testing.)
Changes with 1.0:
- Major Damage Tracker Rework to fix issues with non-lethal/less-than-lethal weapons.
Changes with 0.9.9:
- Added Unknown hash tracking.
- Added support for Cayo Perico and other latest DLC weapons.
ApparentlyRohan
Khorio

