local stunt1 = createColSphere(576.00067138672, 74.200622558594, 19.199590682983, 4)
setElementData(stunt1, "ms.stunttype", "start")

local stunt2 = createColSphere(578.35229492188, 145.79473876953, 23.432909011841, 2)
setElementData(stunt2, "ms.stunttype", "finish")

local kart = {}

kart[1] = createVehicle(571, 538.2685546875, 102.015625, 21.322957992554, 345.67932128906, 4.89990234375, 282.59033203125) -- Kart
kart[2] = createVehicle(571, 537.818359375, 104.6123046875, 21.525831222534, 345.09704589844, 1.944580078125, 271.21948242188) -- Kart
kart[3] = createVehicle(571, 537.654296875, 106.6083984375, 21.613466262817, 345.02014160156, 1.8621826171875, 270.90087890625) -- Kart
kart[4] = createVehicle(571, 537.501953125, 108.4609375, 21.716829299927, 345.146484375, 2.4334716796875, 273.05419921875) -- Kart
kart[5] = createVehicle(571, 537.3046875, 110.8515625, 21.828002929688, 345.14099121094, 2.625732421875, 273.78479003906) -- Kart
kart[6] = createVehicle(571, 537.0029296875, 114.68359375, 22.009729385376, 345.43212890625, 4.0155029296875, 279.10217285156) -- Kart
kart[7] = createVehicle(571, 537.064453125, 117.1298828125, 22.058128356934, 345.38818359375, 3.9056396484375, 278.67919921875) -- Kart
kart[8] = createVehicle(571, 536.6064453125, 119.375, 22.25901222229, 345.27282714844, 3.0706787109375, 275.46569824219) -- Kart
kart[9] = createVehicle(571, 536.4375, 121.390625, 22.354417800903, 345.34423828125, 3.526611328125, 277.19604492188) -- Kart
kart[10] = createVehicle(571, 536.29296875, 123.29296875, 22.436502456665, 345.13000488281, 2.384033203125, 272.87292480469) -- Kart
kart[11] = createVehicle(571, 536.0849609375, 125.7529296875, 22.558820724487, 345.234375, 3.2135009765625, 276.01501464844) -- Kart
kart[12] = createVehicle(571, 535.943359375, 127.609375, 22.656114578247, 345.21240234375, 2.9168701171875, 274.88342285156) -- Kart
kart[13] = createVehicle(571, 535.751953125, 129.5869140625, 22.757284164429, 344.93225097656, 0.0494384765625, 264.13879394531) -- Kart

for i = 1, #kart, 1 do
	setElementData(kart[i], "mv.besitzer", "-")
	setElementData(kart[i], "mv.typ", "Freecar")
	setVehicleDamageProof(kart[i], true)
	setVehicleColor(kart[i], 255, 255, 255, 255, 255, 255)
	setVehicleVariant(kart[i], 0, 0)
	setElementData(kart[i], "mv.stuntcar", "kartbahn")
end

addEventHandler("onColShapeHit", stunt1, function(hitElement) setPlayerToStunt(hitElement, "KARTBAHN", "Birnen", "20", "custom", "Kart" ) end)
addEventHandler("onColShapeHit", stunt2, function(hitElement) finishPlayerStunt(hitElement, "KARTBAHN", "Birnen", "20") end)