prawkobfc = createMarker(359.11539, 178.69902, 1008.38281 - 1, "cylinder", 1.5, 51, 204, 102, 200)
setElementInterior(prawkobfc, 3)
function hitMarker(source)
if getElementData(source, "prawkob") == true then return outputChatBox("#CD5700Posiadasz ju? wyrobione Prawo Jazdy Kat.B", thePlayer, 255, 255, 255, true) end
if getPlayerMoney(source) <= 450 then return outputChatBox("#CD5700Nie posiadasz wystarczaj?co pieni?dzy na t? inwestycj? !", thePlayer, 255, 255, 255, true) end
if getElementData(source, "UP") <= 10 then return outputChatBox("#CD5700Nie posiadasz wystarczaj?co Urban Points?w na t? inwestycj? !", thePlayer, 255, 255, 255, true) end
setElementData(source, "zdaje", true)
setElementInterior(source, 0)
auto = createVehicle(589, -210.67474, 1132.10303, 19.74219, 0, 0, -90)
setVehicleColor(auto, 255, 255, 255)
setElementData(auto, "vehid", "KURS")
setElementData(auto, "przebieg", 0)
setElementData(auto, "paliwo", 30)
setElementData(auto, "bak", 45)
setVehicleHandling(auto, "maxVelocity", 43)
warpPedIntoVehicle(source, auto)
--toggleControl(thePler, "enter_exit", false)
outputChatBox("#CD5700Rozpocz??e? egzamin Prawo Jazdy Kat.B ! Aby go zda? musisz przejecha? ca?? tras? bez ?adnej kolizji. Powodzenia !", thePlayer, 255, 255, 255, true)
end
addEventHandler("onMarkerHit", prawkobfc, hitMarker)