Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Damage Tracker Framework 2.0.0

(4 reviews)

2 Screenshots

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

  1. Install DamageTrackerLib.dll to the GTA V directory.

  2. Install DamageTrackerFramework.dll to the plugins folder.

  3. 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: ULSS then visit my forum.

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 NuGethttps://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

  1. You may redistribute the files with your mod as long as you include the license included with these files in your download.

  2. If you modify the source code, you must make those modifications open-source.

  3. 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

- @SuperPyroManiac

- @Vincentsgm

- 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.


Short Description

A DamageTrackingFramework for developers providing damage events for Peds.

User Feedback

Recommended Comments

Vari

Members Author

12 minutes ago, SuperPyroManiac said:

Deadly Weapons 3.0 here we gooo

 

Lets goooooooo! 🥳

  • Community Team
On 3/1/2023 at 12:54 PM, Sanderwastaken said:

So I need to use this with Deadly Weapons and always keep it up to date?

DeadlyWeapons will always include the minimum version required for it to work. Though if more plugins use this, it will be critical to be up to date. I also will do silent updates on DW so the download has the latest version. Sometimes this framework will have a bug that a new version fixes.

Nemesisx101

Members

(edited)

I’m seeing peds convulse for 2-3 seconds (seems to be messing with euphoria modifications) after being killed since installing this&deadlyweapons

Edited by Wolfx101

Vari

Members Author

(edited)

On 3/20/2023 at 9:56 AM, Wolfx101 said:

I’m seeing peds convulse for 2-3 seconds (seems to be messing with euphoria modifications) after being killed since installing this&deadlyweapons

 

I'll have a look, could be something to do with the fact that DamageTracker clears previous damage info. If you could send a clip that would be really helpful!
Also if you could specify which Euphoria mod you used so I can test it.

Edited by Vari

DooVan

Members

Damage tracker cause LSPDFR to shut down every single game since 2 days... I had to delete it. I was using the latest version of it... here's my Log for you to help 

RagePluginHook.log

Vari

Members Author

39 minutes ago, DooVan said:

Damage tracker cause LSPDFR to shut down every single game since 2 days... I had to delete it. I was using the latest version of it... here's my Log for you to help 

RagePluginHook.log 526.02 kB · 0 downloads

Would you be willing to join the support server linked in the description so I can send you some test versions to see if I can fix your issue?

 

Quote

Please report any issues in this discord: https://discord.gg/ulss

Navigate to the "Pyro's Plugins" Section near the bottom and make your post tagged with DamageTracker.

 

Vari

Members Author

On 10/23/2023 at 1:57 PM, Michael21107 said:

@Varimay I suggest u add version numbers to the zip names?

 

I'll try to keep it in mind for the future! Thanks! I intend to update this mod soon as there is a known issue with gas grenades and damage events. Once I do, I'll include the version number in the zip.

5kY1iN3

Members

(edited)

Going to try and run this with Real Weapons Play and Gunshot Wound 2 and report back. Deadly Weapons never worked right like RWP did in my stack. 

 

That's a negative. Creates rather hilarious behavior though where the ped gets up like a zombie, does a spin, only to die again and repeat lol

Edited by 5kY1iN3

Vari

Members Author

On 11/4/2023 at 12:11 PM, 5kY1iN3 said:

Going to try and run this with Real Weapons Play and Gunshot Wound 2 and report back. Deadly Weapons never worked right like RWP did in my stack. 

 

That's a negative. Creates rather hilarious behavior though where the ped gets up like a zombie, does a spin, only to die again and repeat lol

 

Yeah RWP and GSW2 don't use my framework and will either not work, or be incompatible with this framework. I've looked into making a damage system of my own using this framework, but I've been busy with other things in life lately. My next update should at least make this plugin compatible with other damage-tracking mods. But it might be a little bit before I'm able to implement it as I'm currently switching jobs and moving.

Vari

Members Author

(edited)

On 12/9/2023 at 9:25 AM, Jessfery said:

How can it be used in single player without lspdfr?

 

DamageTrackerFramework is just a RagePluginHook framework for devs to use to make plugins that use the damage events. It does nothing on it's own. If you want to use it, you'll need to either find or make a plugin that uses it for singleplayer, as DeadlyWeapons requires LSPDFR, and I'm not aware of any plugins that use this outside of LSPDFR.

 

On 11/25/2023 at 1:24 AM, Charlie686 said:

Hey there,

Not sure whether it is something you can fix but thought I'd let you know as per your logging. I'm on v1.0.1 & the damage was caused by tear gas. 😄 

  Hide contents

[11/25/2023 1:20:36 AM.129] DamageTrackingFramework: WARNING: 0 Hash is unknown. Please notify DamageTracker Developer at: https://www.lcpdfr.com/downloads/gta5mods/scripts/42767-damage-tracker-framework/

 

 

Hey, yeah this is a known issue, I'm working on an overhaul of the tracking system that uses hooking instead which solves this issue but I've been busy with other things, hopefully looking to have it done within the next month or two. Unfortunately, there's no simple fix for it other than that!

Edited by Vari

DooVan

Members

I have a suggestion: Please could you make the nightstick NON-LETHAL !? it is annoying that we can't use the nightstick because we will kill the ped instantly that is not realistic 

Vari

Members Author

(edited)

On 1/13/2024 at 5:48 PM, DooVan said:

I have a suggestion: Please could you make the nightstick NON-LETHAL !? it is annoying that we can't use the nightstick because we will kill the ped instantly that is not realistic 

I have no control over how the damage of the weapons behave, I simply track them and notify plugins that a ped took damage from one.

Edited by Vari

KERNiis

Members

Very bad optimization before 70+ after mod i have 50 fps((

Vari

Members Author

On 12/24/2025 at 9:44 PM, KERNiis said:

Very bad optimization before 70+ after mod i have 50 fps((

This is unusual. Are you sure it's caused by my mod and nothing else. I know LSPDFR causes some significant performance loss. I haven't seen any performance loss over 1fps in my testing. However I will say even if it causes a 20fps drop, alternative solutions would typically cause a 40-50fps drop so still an improvement! 😁

1K81 killer

Members

(edited)

my lspdfr keep crashing ever time i try to force duty when i use this mod

Edited by 1K81 killer

Vari

Members Author

2 hours ago, 1K81 killer said:

my lspdfr keep crashing ever time i try to force duty

This mod shouldn't affect LSPDFR at all as it doesn't use it nor depend on it.

1K81 killer

Members

my lspdfr keep crashing ever time i try to force duty when i use this mod

Vari

Members Author

On 3/26/2026 at 5:29 PM, 1K81 killer said:

my lspdfr keep crashing ever time i try to force duty when i use this mod

I see in your post history that it seems it was an issue with Policing Redefined and some other mods. Best of luck!

Create an account or sign in to comment

Latest Mods

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.