Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: kurierze
1. Nie widać licznika w kurierze
Tak jak w temacie

Client:

[lua]destinationMarker = nil
destBlip = nil
reloadMarker = createMarker(76.48, -258.01, 1.58-0.9, "cylinder", 5.0, 255, 0, 0, 130)
local Blip = createBlip(76.48, -258.01, 1.58, 46)

unloadingPos = {
{306.94, -246.45, 1.58},
{250.76, 1421.38, 10.59},
{1124.21, 1960.75, 10.82},
{1693.04, 2292.91, 10.82},
{1417.82, 1035.91, 10.82},
{1367.40, 1155.02, 10.82},
}

function endOfWork()
if destinationMarker and isElement(destinationMarker) then
destroyElement(destinationMarker)
destinationMarker = nil
end
if destBlip and isElement(destBlip) then
destroyElement(destBlip)
destBlip = nil
end
end


function takeFurniture(he, md)
if he ~= localPlayer then return end
if not getPedOccupiedVehicle(he) then return end

local car = getPedOccupiedVehicle(he)

if getElementData(car, "pojazd_opis") == "Za�adowane Meble : 0%" then
setElementFrozen(car,true)
outputChatBox("* Ladujesz paczki, prosze czekac!", 255, 255, 255)
setTimer(function()
setElementData(car, "pojazd_opis", "Za�adowane Meble : 100%")
setElementFrozen(car,false)
outputChatBox("* Zaladowales paczki, jedz do blipu 'C'", 255, 255, 255)
showDestination()
end, 5000, 1)
end
end
addEventHandler("onClientMarkerHit", reloadMarker, takeFurniture)

function showDestination()
local rand = math.random(1, #unloadingPos)
local destMa...