Trust aka Tiffergan Posted April 10, 2021 Share Posted April 10, 2021 Hello what function do i need to use to make show dmg to players i need smth like that Link to comment
Lergen Posted April 10, 2021 Share Posted April 10, 2021 (edited) I might be mistaken, but all that looks like is GetElementHealth coupled with math.percent to get the percentage of health from the player's current total. If you want it for the local player like in that screenshot, you can just display the value it returns via a dxDraw function from the client-side. EDIT: Just realized you might actually be talking about that damage points thing at the bottom left. It's a bit simplistic but you could probably calculate that by using a combination of OnPlayerDamage to see if the shot lands, then GetPedWeapon to adjust how many points to add depending on the weapon they're using. Or just use the loss argument from OnPlayerDamage to get how much damage they did. Edited April 10, 2021 by Lergen 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now