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

Example

function onTrafficPedDeath( ped, killer )
{
	print( "onTrafficPedDeath fired" );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Traffic events

Categories: Server events | Traffic events