OnPedDead: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = onPedDead
|side = client
|type = event
|type = event
|name = onPedDead
|games = iii vc sa iv
|usage = a ped has finished dying or when the ped is instantly killed
|desc = a ped has finished dying or when the ped is instantly killed
|callbackParameters = Event event, Ped ped
|arg1 = Ped ped The ped that has died.
|parameter1 = Ped ped The ped that has died.
|cancel = false
|cancellable = false
}}
}}

Latest revision as of 20:28, 19 November 2022

Event Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Not Cancellable

Available since Client 1.0.0

onPedDead(Event event, Ped ped)

The onPedDead event is invoked when a ped has finished dying or when the ped is instantly killed.

Parameters

1) Event event The event object for this event.
2) Ped ped The ped that has 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

Client Related

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