6,834
edits
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
|parameter5 = int pedPiece The ped piece ID for the damage. | |parameter5 = int pedPiece The ped piece ID for the damage. | ||
|cancellable = true | |cancellable = true | ||
|exampleJSCS = addEventHandler('onPedInflictDamage', function(event, ped, responsibleEntity, weapon, loss, pedPiece) | |||
{ | |||
// Prevent the ped from being damaged. | |||
event.preventDefault(); | |||
}); | |||
}} | }} |
edits