local pjob = createPickup(-2425.17236, -591.79901, 132.18718, 3, 1275, 50)
function animPochta (hitElement)
setPedAnimation(hitElement, "BOM_Plant_Loop", 10000, true)
end
function pickupJobTrudoustroistvo (hitElement)
if not getPedOccupiedVehicle(hitElement) then
local veh = createVehicle(402, -2434.04785, -593.96906, 131.95361)
warpPedIntoVehicle(hitElement, veh)
outputChatBox("Вы устроились работать почтальоном! Ваша задача - доставлять письма в определенные точки на карте", hitElement, 0,255,255)
local m1 = createMarker(-2521.41650, -623.82672, 131.77835, "cylinder", 1.0, 0,255,0,100)
local m2 = createMarker(-2384.37646, -586.83795, 131.11719, "cylinder", 1.0, 0,255,0,100)
local m3 = createMarker(-2224.95654, -725.03088, 64.29856, "cylinder", 1.0, 0,255,0,100)
local m4 = createMarker(-2244.37109, -171.33820, 34.31252, "cylinder", 1.0, 0,255,0,100)
local m5 = createMarker(-2268.78076, -155.74817, 34.32031, "cylinder", 1.0, 0,255,0,100)
local b1 = createBlip(-2521.41650, -623.82672, 131.77835,0,2,255,0,0,255,0,200)
local b2 = createBlip(-2384.37646, -586.83795, 131.11719,0,2,255,0,0,255,0,200)
local b3 = createBlip(-2224.95654, -725.03088, 64.29856,0,2,255,0,0,255,0,200)
local b4 = createBlip(-2244.37109, -171.33820, 34.31252,0,2,255,0,0,255,0,200)
local b5 = createBlip(-2268.78076, -155.74817, 34.32031,0,2,255,0,0,255,0,200)
addEventHandler("onMarkerHit", m1, m1hit)
end
end
addEventHandler("onPickupHit", pjob, pickupJobTrudoustroistvo)
function m1hit (hitElement)
if not getPedOccupiedVehicle(hitElement) then
outputChatBox("Вы доставили письмо!", hitElement, 0,255,0)
destroyElement(m1)
destroyElement(b1)
end
end