Jump to content
RAGE Multiplayer Community

[JS] How to kill ped/NPC?


Peyman
 Share

Recommended Posts

Hello guys.

How can I kill ped? I made ped and I don't know how can i kill him.

mp.peds.new(mp.game.joaat('a_f_y_bevhills_02'), new mp.Vector3(-1193.87, -766.57, 17.31), 209.81, (streamPed) => {
    streamPed.setAlpha(255);
    streamPed.setHealth(50); // Also setHealth doesn't work and I want to kill ped with weapon
}, player.dimension);

 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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