Scripting/Server/Events/onTrafficPedDeath
killer is the player who last hurt the ped within 10 seconds, otherwise null (traffic, fire, other peds). Dead traffic peds drop no money or weapons - create your own pickups here if you want drops.
Syntax
onTrafficPedDeath(ped, killer)Arguments
- any ped
- Player killer –
killeris the player who last hurt the ped within 10 seconds, otherwisenull(traffic, fire, other peds).
Example
function onTrafficPedDeath( ped, killer )
{
print( "onTrafficPedDeath fired" );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- onTrafficPedCreated
- onTrafficVehicleCreated
- onTrafficPedRemoved
- onTrafficVehicleRemoved
- onPlayerShootTrafficPed
- onTrafficVehicleWrecked
- onPlayerTakeOverTrafficVehicle
- onPlayerCommitCrime
- onDialogResponse
- onPlayerEditObject
- onPlayerSelectObject
- onPlayerEditGraffiti
Section: Traffic events
Categories: Server events | Traffic events