OnPedWasted: Difference between revisions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = onPedWasted | ||
|side = shared | |||
|type = event | |type = event | ||
| | |games = iii vc sa | ||
| | |desc = a ped dies | ||
| | |arg1 = Ped wastedPed The ped that has died. | ||
|arg2 = Entity attackerEntity The entity that attacked the ped who died. Such as a ped or vehicle entity. | |||
|arg3 = int weapon The weapon ID that caused the ped to die. | |||
| | |arg4 = int pedPiece The ped piece ID for the ped that died. | ||
| | |cancel = false | ||
| | |||
}} | }} | ||
Latest revision as of 17:06, 13 June 2026
Event Server and Client
![]()
Online and Offline Not Cancellable
onPedWasted(Event event, Ped wastedPed, Entity attackerEntity, int weapon, int pedPiece)
Parameters
| 1) | Event | event | The event object for this event. |
| 2) | Ped | wastedPed | The ped that has died. |
| 3) | Entity | attackerEntity | The entity that attacked the ped who died. Such as a ped or vehicle entity. |
| 4) | int | weapon | The weapon ID that caused the ped to die. |
| 5) | int | pedPiece | The ped piece ID for the ped that died. |
Attributes
| const | This event cannot be cancelled. |
Notes
There aren't any notes for this event.
Examples
There aren't any examples for this event.
Compatibility
There isn't any compatibility information for this event.
Related
Server Related
OnPedCrouch
OnPedEnterVehicle
OnPedExitVehicle
OnPedFall
OnPedJump
OnPedSpawn
OnPedUncrouch
OnPedWasted
Client Related
OnPedBusted
OnPedChangeWeapon
OnPedCrouch
OnPedDead
OnPedEnteredVehicle
OnPedEnteringVehicle
OnPedEnterVehicle
OnPedExitedVehicle
OnPedExitingVehicle
OnPedExitVehicle
OnPedFall
OnPedFireProjectile
OnPedInflictDamage
OnPedJump
OnPedSpawn
OnPedStartClosingVehicleDoor
OnPedStartFightAttack
OnPedStartFightDefend
OnPedStartOpeningVehicleDoor
OnPedUncrouch
OnPedUseWeapon
OnPedWasted