addEventHandler("onPlayerWasted", root,
function(_,killer)
if killer and getElementType(killer) == "player" then
givePlayerMoney(killer, 1000)
outputChatBox(getPlayerName(killer).." has killed "..getPlayerName(source).."!!!",root,255,255,255)
local veh = getPedOccupiedVehicle(killer)
if veh then fixVehicle(veh) end
end
end)