Pomocy robie prace kosiarek i mam blad bo kazdemu respi sie marker jak ktos prace rozpocznie !
[lua]local rozpocznijkosiarki = createMarker(239.86,1033.41,24.28,"cylinder",2.0,0,255,0,255)
punkty = {
{262.12969970703, 1050.2818603516, 21.993144989014},
{264.08456420898, 1073.9671630859, 17.064970016479},
{278.78396606445, 1072.0758056641, 17.635766983032},
{277.53994750977, 1048.6411132813, 22.602624893188},
{262.08264160156, 1040.5043945313, 24.127019882202},
{244.19674682617, 1061.0831298828, 18.712356567383},
{247.59407043457, 1085.6677246094, 14.979658126831},
{271.54467773438, 1091.4221191406, 13.475341796875},
{261.13067626953, 1077.4204101563, 16.51665687561},
}
function celresp (player)
local pkt = punkty[math.random(1, #punkty)]
cel = createMarker(pkt[1], pkt[2], pkt[3], "checkpoint",4.0, 123, 225, 56, 150,player)
blip = createBlipAttachedTo(cel, 41,2,255,0,0,255,0,99999.0,player)
function wjechal (player)
local money = math.random(5,15)
destroyElement(cel)
destroyElement(blip)
givePlayerMoney(player,money)
celresp()
end
addEventHandler("onMarkerHit",cel,wjechal)
end
addEventHandler("onMarkerHit",rozpocznijkosiarki,function(player)
local kosiarka = createVehicle(572,240.46,1038.46,23.85,346.9,356.7,356.0)
setElementData(kosiarka,"pojazd_wyjdz",true)
setElementData(kosiarka,"pojazd_paliwo",math.random(20,50))
setElementData(kosiarka,"pojazd_opis",... |