addEventHandler("onVehicleDamage", root, function(dmg)
local plr = getVehicleOccupant(source)
if plr and getElementData(source, "destroyafterimpact") then
outputChatBox(Pracodawca .. " Uszkodzi?e? pojazd!nIlo?? straconego HP pojazdu przy uderzeniu: "..tonumber(dmg), plr, 255, 255, 255, true)
outputChatBox("wykonuje si?", plr, 255, 255, 255)
setElementPosition(plr, -1714.19910, 888.32092, 25.74219)
destroyElement(source)
end
end)