Jump to content
RAGE Multiplayer Community

Ped wont take damage


Recommended Posts

Hello o/


I can't seem to make my ped killable in any way. The API;


 doesn't seem to do anything. I've tried using natives as well and messed around with the setHealth, getHealth, setMaxHealth & getMaxHealth APIs as well but with no luck. I also tried using relationshipGroups and making the player group able to damage the ped group.(Didn't work) I'm unable to detect the ped on the client event playerWeaponShot as so;

mp.events.add('playerWeaponShot', (targetPosition, targetEntity) => {
    targetEntity always returns null when hitting the ped.

So I'm running out of ideas.. Would I have to raycast from my gun when shooting and see if that perhaps hits the ped? Or is there an easier fix for my issue.




  • Like 1
Link to comment
Share on other sites

  • 9 months later...
  • 2 months later...
  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...