OnPedWasted: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = onPedWasted
|side = shared
|type = event
|type = event
|name = onPedWasted
|games = iii vc sa
|usage = a ped dies
|desc = a ped dies
|callbackParameters = Event event, Ped wastedPed, Ped attackerPed, int weapon, int pedPiece
|arg1 = Ped wastedPed The ped that has died.
|cancellable = false
|arg2 = Entity attackerEntity The entity that attacked the ped who died. Such as a ped or vehicle entity.
|parameter1 = Ped wastedPed The ped that has died.
|arg3 = int weapon The weapon ID that caused the ped to die.
|parameter2 = Ped attackerPed The ped that attacked the ped who died.
|arg4 = int pedPiece The ped piece ID for the ped that died.
|parameter3 = int weapon The weapon ID that caused the ped to die.
|cancel = false
|parameter4 = int pedPiece The ped piece ID for the ped that died.
}}
}}

Latest revision as of 17:06, 13 June 2026

Event Server and Client GTAIII Logo.png icon-vc.png icon-sa.png Online and Offline Not Cancellable

Available since Server 1.0.0, Client 1.0.0
onPedWasted(Event event, Ped wastedPed, Entity attackerEntity, int weapon, int pedPiece)
The onPedWasted event is invoked when a ped dies.

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

GTAIII Logo.png icon-vc.png icon-sa.png OnPedCrouch
GTAIII Logo.png icon-vc.png icon-sa.png OnPedEnterVehicle
GTAIII Logo.png icon-vc.png icon-sa.png OnPedExitVehicle
GTAIII Logo.png icon-vc.png icon-sa.png OnPedFall
GTAIII Logo.png icon-vc.png icon-sa.png OnPedJump
GTAIII Logo.png icon-vc.png icon-sa.png icon-iv.png OnPedSpawn
GTAIII Logo.png icon-vc.png icon-sa.png OnPedUncrouch
GTAIII Logo.png icon-vc.png icon-sa.png OnPedWasted


Client Related

OnPedBusted
OnPedChangeWeapon
GTAIII Logo.png icon-vc.png icon-sa.png OnPedCrouch
GTAIII Logo.png icon-vc.png icon-sa.png icon-iv.png OnPedDead
OnPedEnteredVehicle
OnPedEnteringVehicle
GTAIII Logo.png icon-vc.png icon-sa.png OnPedEnterVehicle
OnPedExitedVehicle
OnPedExitingVehicle
GTAIII Logo.png icon-vc.png icon-sa.png OnPedExitVehicle
GTAIII Logo.png icon-vc.png icon-sa.png OnPedFall
OnPedFireProjectile
GTAIII Logo.png icon-vc.png icon-sa.png OnPedInflictDamage
GTAIII Logo.png icon-vc.png icon-sa.png OnPedJump
GTAIII Logo.png icon-vc.png icon-sa.png icon-iv.png OnPedSpawn
OnPedStartClosingVehicleDoor
OnPedStartFightAttack
OnPedStartFightDefend
OnPedStartOpeningVehicleDoor
GTAIII Logo.png icon-vc.png icon-sa.png OnPedUncrouch
OnPedUseWeapon
GTAIII Logo.png icon-vc.png icon-sa.png OnPedWasted