[lua]local districtsBus = {
{-2019.83032,462.40048,35.17229},
{-2006.79102,408.72031,34.79565},
{-2008.52344,265.10687,31.36655},
{-2008.97949,116.47514,27.31794},
{-2120.60767,112.31438,34.95283},
{-2169.56055,44.05518,34.95201},
{-2169.59644,-56.73763,34.94774},
{-2393.76270,-68.54819,34.94443},
{-2635.83081,-68.07608,3.95697},
{-2785.24292,-68.43432,6.81854},
{-2807.52734,5.93914,6.80931}, -- prosta lewa strona mapy
{-2807.09766,181.73575,6.80850},
{-2809.35742,307.21472,5.62611},
{-2851.80933,399.29401,4.13669},
{-2825.35376,464.60773,4.33841},
{-2642.53076,466.28339,13.48236},
{-2604.78149,547.02252,14.23979},
{-2520.24170,562.22870,14.24022},
{-2367.01318,562.93127,24.51938},
{-2273.58472,562.84485,35.01563},
{-2107.74243,562.57837,35.01563},
{-2009.17590,558.70898,35.01563},
{-2008.12476,470.15121,35.01563},
{-2039.78931,461.50751,35.17188},
}
local districtsBus = {
{-2039.78931,461.50751,35.17188},
{-2008.12476,470.15121,35.01563},
{-2039.78931,461.50751,35.17188},
}
addEvent("givePlayerMoney", true)
addEventHandler("givePlayerMoney", resourceRoot, function()
givePlayerMoney (localPlayer, 2)
end)
local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districtsBus
function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end
... |